Commit Graph

1081 Commits

Author SHA1 Message Date
Natalie Weizenbaum
fb07af6956 Release 1.0.0-beta.5.1
I pushed 1.0.0-beta.5 before merging in the latest change, so this has
a different version number.
2018-02-02 17:39:16 -08:00
Natalie Weizenbaum
f1e58e083e
Make SassList.contents private (#227)
This forces users to use Value.asList, which encourages them to be
aware that every value counts as a list.
2018-02-02 17:36:29 -08:00
Natalie Weizenbaum
854e7f57d6
Merge pull request #226 from sass/string-default-quoted
Be explicit about string quotes in new SassString()
2018-02-02 17:08:53 -08:00
Natalie Weizenbaum
a7ca1e0055 new SassString() defaults to quoted
We encourage API users to produce quoted strings when in doubt, so our
API should match that behavior.
2018-02-02 16:49:23 -08:00
Natalie Weizenbaum
163e99bff2 Be explicit about string quotes in new SassString() 2018-02-02 16:47:54 -08:00
Natalie Weizenbaum
a1d7e83143
Merge pull request #225 from sass/npm-readme
Improve the README(s)
2018-02-02 16:41:12 -08:00
Natalie Weizenbaum
3548a20979 Add a specialized README for npm 2018-02-02 16:37:06 -08:00
Natalie Weizenbaum
18a153912e Replace badges in the README with a header table 2018-02-02 16:36:53 -08:00
Natalie Weizenbaum
149dae9e5d Minor README improvements 2018-02-02 16:36:43 -08:00
Natalie Weizenbaum
a6a32a0827
Merge pull request #223 from sass/node-functions
Add support for the Node Sass custom function API
2018-02-02 14:21:57 -08:00
Natalie Weizenbaum
a8a4c8e124 Reduce concurrency for Node tests on Travis
Travis was killing dart2js and Node instances
2018-02-02 14:07:59 -08:00
Natalie Weizenbaum
2301ecb65f
Generate app snapshots for the current OS (#224)
Might as well give some subset of our users a speed-up while we wait
for dart-lang/sdk#28617.
2018-02-01 18:54:42 -08:00
Natalie Weizenbaum
0826d98d15 Don't waste time compiling when not running Node tests
This works around dart-lang/test#753
2018-02-01 18:21:34 -08:00
Natalie Weizenbaum
f0e181bf2e Don't run tests that require Dart 2 against stable 2018-02-01 18:21:34 -08:00
Natalie Weizenbaum
5a1bfaebbf Add support for the Node Sass custom function API
Closes #10
Closes #12
2018-01-30 11:14:42 -08:00
Natalie Weizenbaum
00be14263a
Merge pull request #222 from jathak/package-fix
Make function in package script more portable
2018-01-29 14:30:52 -08:00
Natalie Weizenbaum
2f5069e6a8 Add a changelog entry 2018-01-29 14:30:34 -08:00
Jen Thakar
ccbe35da77 Make function in package script more portable
The script in the standalone package currently fails on OSes like
Ubuntu where /bin/sh does not support functions declared with the
function keyword.

This removes the function keyword from `follow_links`.
2018-01-26 22:03:55 -08:00
Natalie Weizenbaum
2f1e40eb35
Merge pull request #219 from sass/fix-conversion-error
Fix some unit math issues
2018-01-23 14:51:31 -08:00
Natalie Weizenbaum
9240f372aa Fix a unit division bug 2018-01-23 12:51:33 -08:00
Natalie Weizenbaum
921e1fa204 Fix a unit optimization bug 2018-01-23 12:45:25 -08:00
Natalie Weizenbaum
6b4598ba55
Merge pull request #217 from sass/compressed
Support compressed output
2018-01-21 15:48:59 -08:00
Natalie Weizenbaum
ac0ab00120 Emit compressed output 2018-01-21 13:15:55 -08:00
Natalie Weizenbaum
8d7964e9be Add a compressed output style and pipe it through to the executable 2018-01-21 13:15:55 -08:00
Natalie Weizenbaum
116bd3a8af
Fix a _minimumIndentation() edge case (#218) 2018-01-21 13:14:44 -08:00
Natalie Weizenbaum
67494e2b2a
Clean up _writeWithIndent() (#216)
This improves formatting and fixes a case where it crashed on trailing
whitespace.
2018-01-20 13:18:14 -08:00
Natalie Weizenbaum
da2ff6a06d
Fix analysis hints (#215) 2018-01-19 15:26:41 -08:00
Natalie Weizenbaum
629ac3b187 Support args 1.0.0
Closes #214
2018-01-19 13:26:27 -08:00
Natalie Weizenbaum
0b760200b8
Merge pull request #213 from sass/string-index
Add SassString index helpers
2018-01-14 16:43:31 -08:00
Natalie Weizenbaum
123fe55017 Add SassString index helpers
We aren't using these in our own functions because, for
backwards-compatibility, these functions don't throw errors for
invalid indices.
2018-01-14 16:04:46 -08:00
Natalie Weizenbaum
c88912fc4c Refactor str-insert()
This makes the logic simpler and clearer.
2018-01-14 15:40:24 -08:00
Natalie Weizenbaum
b1b9eca66a
Add tests for SassNumber.valueInRange() (#212) 2018-01-14 15:18:16 -08:00
Natalie Weizenbaum
9d207b13ec
SassNumber.assertIndexFor() -> Value.sassIndexToListIndex() (#211) 2018-01-14 13:38:43 -08:00
Natalie Weizenbaum
1e09cec5aa
Split Value and its subtypes into public and private interfaces (#210) 2018-01-13 01:30:42 -08:00
Natalie Weizenbaum
8e57a0635d
Merge pull request #209 from sass/dart-custom-functions
Expose an API for defining custom Dart functions
2018-01-13 00:43:10 -08:00
Natalie Weizenbaum
ce1cc18c0e Add tests for Value subclasses
Now that these are an exposed part of the API, they need to be tested.
2018-01-13 00:34:54 -08:00
Natalie Weizenbaum
e5af175b55 Fix a couple number hashing bugs 2018-01-13 00:34:54 -08:00
Natalie Weizenbaum
b5a838c9c5 Improve callable and value documentation
This documentation now targets external users, since these are part of
the public API.
2018-01-13 00:34:54 -08:00
Natalie Weizenbaum
8988c3c7fa Expose an API for defining custom Dart functions 2018-01-13 00:34:54 -08:00
Natalie Weizenbaum
aa3c765b10
Allow var() in place of multiple arguments to color functions (#208)
See sass/sass#2440
2018-01-12 11:43:36 -08:00
Natalie Weizenbaum
00cb5532a0 Run dartfmt 2018-01-05 16:48:39 -08:00
Natalie Weizenbaum
75776ca062
Emit a warning for && (#207)
See sass/sass#2429
2018-01-03 19:12:53 -08:00
Natalie Weizenbaum
c49e037e34
Fix round() for negative numbers (#205)
See sass/sass#2409
2017-12-15 15:11:32 -08:00
Natalie Weizenbaum
3f0422575f Release 1.0.0-beta.4 2017-12-08 15:54:37 -08:00
Natalie Weizenbaum
088493e49d
Merge pull request #204 from sass/unquoted-import
Support unquoted imports in the indented syntax
2017-12-08 15:45:28 -08:00
Natalie Weizenbaum
fa29248955 Support unquoted imports in the indented syntax
Closes #202
2017-12-08 15:38:08 -08:00
Natalie Weizenbaum
c8979f52f2 Annotate protected parser methods 2017-12-08 14:59:16 -08:00
Natalie Weizenbaum
d8ffd4720a
Merge pull request #203 from sass/appveyor
Enable all Node tests on Appveyor
2017-12-08 13:40:20 -08:00
Natalie Weizenbaum
049b860298 Enable all Node tests on Windows 2017-12-08 01:03:34 -08:00
Natalie Weizenbaum
7a4158dafb Fix some tests that were broken on Windows 2017-12-08 01:03:34 -08:00