Natalie Weizenbaum
96468e4fa5
Fix a small documentation typo ( #499 )
2018-10-15 15:53:48 -07:00
Natalie Weizenbaum
453d89bad5
Treat :before et al a pseudo-elements ( #495 )
...
Closes #484
2018-10-12 14:35:49 -07:00
Jen Thakar
9a1f322d7f
Remove space around combinators in compressed mode ( #494 )
...
Complex selectors like "a > b" will now be output as "a>b" in
compressed mode.
2018-10-11 18:03:09 -07:00
Natalie Weizenbaum
0595ac3e71
Fix an import-resolution bug ( #488 )
...
When a stylesheet is imported, the parsed stylesheet object is cached
based on its canonical URL. However, the stylesheet.span.sourceUrl was
based on the text of the import that was used to load that stylesheet.
The idea was to make the source URL in stack traces look nicer, but it
meant that relative URLs could be resolved based on the old importer's
URL before being sent to the new importer, which caused bugs.
Now stylesheet.span.sourceUrl is always the canonical URL of the
stylesheet, and thus safe to cache. We then use the import cache to
convert the canonical URL to a human-friendly URL at the point at
which we generate stack traces.
This also deprecates support for relative canonical URLs. The
semantics of these URLs were always unclear, and with the new change
in import internals the old behavior doesn't make much sense. It's
preserved for backwards-compatibility, but deprecated.
2018-10-11 15:06:26 -07:00
Natalie Weizenbaum
123bc1ff68
Properly escape U+001F INFORMATION SEPARATOR ONE in unquoted strings ( #487 )
...
See sass/sass-spec#1288
2018-10-10 15:49:43 -07:00
Natalie Weizenbaum
0620ccc19a
Fix @debug on stdin ( #493 )
2018-10-10 15:05:23 -07:00
Natalie Weizenbaum
89aa34c28e
Lock the Dart versions to 2.0.0 and 2.1.0-dev.5 ( #489 )
...
2.1.0-dev.6 removes support for --preview-dart-2, which we currently
rely on for performance.
2018-10-09 14:05:49 -07:00
Natalie Weizenbaum
ff3cea5312
Properly parse escaped digits at the beginning of identifiers ( #486 )
...
See sass/sass#1542
Closes sass/dart-sass#485
2018-09-26 21:01:46 -04:00
Natalie Weizenbaum
b3c9e7b00f
Fix a parsing bug involving nested content blocks ( #483 )
...
Closes #482
2018-09-26 14:32:55 -04:00
Progracientist
a6164217df
Prettify URIs ( #481 )
...
Closes #464
2018-09-26 13:39:49 -04:00
Natalie Weizenbaum
15fe12be21
Pass the --fast-startup flag to dart2js ( #480 )
...
My benchmarks indicate a small but reliable improvement in startup
time with this option.
2018-09-19 22:17:02 -04:00
Natalie Weizenbaum
6a76a1e058
Fix the Homebrew deployment script ( #479 )
...
The Git command for pushing a detached HEAD has changed slightly.
2018-09-19 22:16:21 -04:00
Natalie Weizenbaum
89b86be5e8
Enable full alpha hex support ( #478 )
...
Closes #371
2018-09-19 16:03:32 -04:00
Natalie Weizenbaum
ddf687fba9
Merge pull request #475 from sass/benchmark
...
Clean up the benchmark code
2018-09-19 15:29:08 -04:00
Natalie Weizenbaum
04ada09a82
Get rid of the dart2 test tag ( #477 )
...
We're only ever running tests under Dart 2 now, so it's irrelevant
whether they're Dart 2-only.
2018-09-19 15:28:47 -04:00
Natalie Weizenbaum
b6ccc91a13
Re-run benchmarks
2018-09-17 15:33:56 -07:00
Natalie Weizenbaum
f15400325b
Make sure not to load Ruby Sass from the global installation
2018-09-17 15:33:36 -07:00
Natalie Weizenbaum
0e0237bcb2
Run benchmarks against Dart 2 as well
2018-09-17 15:33:36 -07:00
Natalie Weizenbaum
ea6af41867
Fail when a benchmark emits a non-0 exit code
2018-09-17 14:29:46 -07:00
Natalie Weizenbaum
a6f7d94830
Generate the proper trailing benchmark header
2018-09-17 14:29:46 -07:00
Natalie Weizenbaum
7b4137bb5a
Run benchmarks against the release-compiled JS
2018-09-17 14:29:46 -07:00
Natalie Weizenbaum
ba22b59d2f
Fix Dart VM invocations
2018-09-17 14:29:46 -07:00
Natalie Weizenbaum
67bd53b938
Add some real-world benchmarks
2018-09-17 14:29:46 -07:00
Natalie Weizenbaum
a86fb98749
Move benchmark generation into a grind task
2018-09-17 10:26:43 -07:00
Natalie Weizenbaum
918a3fedf2
Pass --omit-implicit-checks to dart2js in release mode ( #473 )
...
Substantially addresses #113
2018-09-11 14:39:47 -07:00
Natalie Weizenbaum
1a5eb2a2e3
Fix embedding source maps with non-ASCII characters ( #471 )
...
Closes #457
2018-09-11 12:13:43 -07:00
Natalie Weizenbaum
ede9c81e0b
Properly adjust source maps when prepending encoding information ( #470 )
...
Closes #469
2018-09-10 15:38:30 -07:00
Natalie Weizenbaum
edf3370cd9
Parse :nth-child() selectors with extra whitespace ( #467 )
...
As a side effect of the new parse, this also removes extra whitespace
from :nth-child() selectors.
Closes #465
2018-09-05 15:28:26 -07:00
Natalie Weizenbaum
048b17495e
Support browser hacks in plain CSS mode ( #468 )
...
Closes #466
2018-09-05 14:31:59 -07:00
Natalie Weizenbaum
9e5ef91f22
Add support for the single-equals operator in plain CSS ( #463 )
...
Closes #462
2018-08-31 18:15:23 -06:00
Natalie Weizenbaum
15202c48dc
Simplify trimming for extend ( #460 )
...
We were previously trimming at bath the compound selector level and
the selector list level. This now only trims at the selector list
level.
The _trim() function also took a list of selector lists, on the
idea (from Ruby Sass) that it could avoid trimming selectors generated
from the same extension that were very unlikely to be redundant. In
practice, though, the fact that we weaved together selector lists at
the compound level meant that we didn't have meaningful
known-non-redundant lists like Ruby Sass did, so this wasn't useful.
This has no behavioral effect, although it does seem to improve
performance slightly for extend-heavy stylesheets.
2018-08-30 01:02:05 -06:00
Natalie Weizenbaum
997e068499
Add support for extending selector lists ( #455 )
...
Closes #452
2018-08-17 13:32:10 -07:00
Natalie Weizenbaum
677d781c52
Fix a crash with nested media rules ( #454 )
...
Closes #453
2018-08-17 12:34:31 -07:00
Natalie Weizenbaum
c5dff3e841
Remove the source map comment from the JS blob we release ( #448 )
...
See bazelbuild/rules_sass#44
2018-08-15 13:28:02 -07:00
Natalie Weizenbaum
3346c7974a
Fix analysis hints ( #450 )
2018-08-15 12:43:55 -07:00
Natalie Weizenbaum
a33bc8812e
Use the proper scope for nested imports ( #449 )
...
Closes #443
2018-08-14 16:43:39 -07:00
Sam Rawlins
54192ee815
Fix a new missing_return error in Dart 2.1.0-dev.0.0 ( #445 )
2018-08-14 13:11:21 -07:00
Natalie Weizenbaum
874ee0b076
Expose the SassException class publicly ( #446 )
2018-08-14 12:58:47 -07:00
Natalie Weizenbaum
d1bb4a0d6d
Allow a BOM at the beginning of a document ( #441 )
...
This was only breaking in JS because apparently dart:io automatically
filters out BOMs.
Closes #437
2018-08-10 16:31:15 -07:00
Natalie Weizenbaum
0f7f9e69a7
Add support for plain CSS imports ( #436 )
...
Closes #424
2018-08-10 15:58:15 -07:00
Natalie Weizenbaum
bad88c8152
Merge branch '1.10.x' into master
2018-08-10 14:45:49 -07:00
Natalie Weizenbaum
534256a381
Merge branch '1.10.x' into master
2018-08-09 17:56:30 -07:00
Natalie Weizenbaum
379e2fe72e
Default to the stable Dart channel ( #439 )
2018-08-09 17:53:39 -07:00
Natalie Weizenbaum
82b7b0687a
Merge pull request #438 from sass/dart-2
...
Support Dart 2 stable
2018-08-09 16:40:41 -07:00
Natalie Weizenbaum
511319a3b4
Declare support for test 1.0.0
...
Closes sass/homebrew-sass#10
2018-08-09 15:16:56 -07:00
Natalie Weizenbaum
4a100c74e5
Document the Travis/Appveyor branch regexps
2018-08-09 15:16:56 -07:00
Natalie Weizenbaum
d3cb2eaf64
Run against old release branches
2018-08-09 13:29:17 -07:00
Natalie Weizenbaum
bc7443fa57
Test against Dart 2 stable
2018-08-09 13:27:50 -07:00
Natalie Weizenbaum
98fa94e3e7
Merge branch '1.10.x'
2018-08-03 15:42:23 -07:00
Natalie Weizenbaum
4f248c6d3f
Add an error() function to Parser ( #430 )
...
This simplifies the process of throwing an error associated with an
existing span.
2018-08-03 15:38:59 -07:00