Commit Graph

125 Commits

Author SHA1 Message Date
Natalie Weizenbaum
68944df35e
[Calc Functions] Apply to main specification (#3693)
See #3504
2023-09-20 23:31:36 +00:00
Natalie Weizenbaum
1b39070cf4
Add a note about the version of protoc to embedded_sass.proto (#3692)
See #3685
2023-09-20 22:14:55 +00:00
Natalie Weizenbaum
058ce05454
[Containing URL] Update the specification (#3688)
See #3247
2023-09-18 23:00:25 +00:00
Natalie Weizenbaum
1523bffb36
Add a Markdown linter (#3667) 2023-08-22 21:10:27 +00:00
Ed Rivas
524790175f
Add JS type definitions for calculations (#3622)
Co-authored-by: Jonny Gerig Meyer <jonny@oddbird.net>
2023-07-19 14:36:23 -07:00
Natalie Weizenbaum
33f881f035
Partially revert "Add JS type defs for calculations (#3605)" (#3619)
This reverts the parts of commit 39915044f6 that modify the official specs. These should only have landed along with implementation updates.
2023-06-20 17:22:15 -07:00
Natalie Weizenbaum
14590c7940
[Previous URL] Expand to embedded protocol and filesystem importers (#3609)
This updates the embedded protocol to support the proposal and adds
support for passing the previous URL to filesystem importers.
2023-06-20 15:57:35 -07:00
Ed Rivas
39915044f6
Add JS type defs for calculations (#3605)
Co-authored-by: Jonny Gerig Meyer <jonny@oddbird.net>
2023-06-20 15:55:26 -07:00
Lars Grefer
8b0296ab87
Improve generated Java code (#3607)
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2023-06-08 18:04:24 -07:00
Natalie Weizenbaum
631edc8705
Update the embedded protocol to 2.0.0 (#3599)
Closes #3579
Closes #3575
Closes #3577
2023-06-06 14:23:13 -07:00
Natalie Weizenbaum
d57ab0a42a Merge remote-tracking branch 'embedded/main' into embedded 2023-05-16 17:46:22 -07:00
Natalie Weizenbaum
7abda4e2f4
Use literate programming for JS API specs (#3552) 2023-04-27 13:50:53 -07:00
Natalie Weizenbaum
e309180d40
Merge pull request #3543 from sass/fix-link-check
Fix the link checker test and broken links
2023-04-12 17:45:49 -07:00
Natalie Weizenbaum
8bcdee76ee Fix broken links
This also introduces a number of workarounds for tcort/markdown-link-check#255
2023-04-12 17:35:49 -07:00
Natalie Weizenbaum
c58ba5db9a
Fix a lingering reference to MinMaxExpression (#3539)
This was replaced by `CssMinMax`.
2023-04-11 19:17:26 -07:00
Goodwine
7f5b16bdcf
Allow global functions 'invert()', 'grayscale()', 'opacity()', and 'saturate()' to use 'var()' (#3528)
* Allow global functions 'invert()', 'grayscale()', 'opacity()', and 'saturate()' to use 'var()'.

* split saturate() overload definitions

* add 'number' beside 'special number' as condition. note that 'saturete()' is available globally
2023-04-07 15:21:48 -07:00
Natalie Weizenbaum
04acb45828
[Calc Constants] Merge into the canonical spec (#3519)
Closes #3258
2023-03-23 16:16:41 -07:00
Natalie Weizenbaum
98c9c4c1e3
Add string.split() to the canonical spec (#3502)
See sass/sass#1950
2023-03-03 15:14:41 -08:00
Connor Skees
6a21d2e470
fix typo in @extend spec (#3484) 2023-01-30 22:15:30 +00:00
Natalie Weizenbaum
860421ca54
[Function Units] Flush the proposal to the spec (#3437)
See #3374
2022-10-28 17:04:33 -07:00
Natalie Weizenbaum
78d28d300b
[Floating Point] Integrate the proposal into the spec (#3408) 2022-10-03 16:01:22 -07:00
Goodwine
c4bab9dc6c
Mark accepted: Random with Units Proposal (#3377)
* Mark Accepted: Random with Units Proposal

* add semantic changes to 'random' in /spec

* fix wording for floating point and range for ints in draft 1.1
2022-08-17 18:17:45 -07:00
Goodwine
898d716967
Note configurations are shared across all files in a module by instance given a uniquely-identifying opaque ID (#3357)
* '@use .. with' Configs get unique IDs propagated down with @forwards

When loading a module multiple times, like when several sources end up
using the modules, it used to be an error but now it's allowed as long
as the configuration is the same according to its ID

* update wording with loading a module procedure
2022-08-17 12:34:00 -07:00
Natalie Weizenbaum
7f52c1de6e
[Media Logic] Apply changes to the spec (#3365) 2022-07-22 14:13:57 -07:00
Natalie Weizenbaum
6d751c46fa
[Reconfigurable Modules] Apply the proposal to the spec (#3364) 2022-07-22 13:56:00 -07:00
Natalie Weizenbaum
1b14a802d8
[Bogus Combinators] Update the specification (#3362) 2022-07-21 16:59:01 -07:00
なつき
c1850ac85d
Add charset option to js-api (#3346) 2022-06-29 16:25:21 -07:00
Natalie Weizenbaum
3673b2af51
Support var() with an empty fallback (#3338)
See #3245
2022-06-21 15:07:43 -07:00
Natalie Weizenbaum
747d8d976b
Explicitly define FunctionExpression (#3336)
This sets the stage for modifying it to fix #3245
2022-06-16 15:21:15 -07:00
Christophe Coevoet
ac8fedffdc
Update specs to allow CSS imports with arbitrary modifiers (#3290)
Closes #3285

Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2022-05-19 16:53:34 -07:00
Jennifer Thakar
4634461cd8
Update hsl/hwb specs to reflex current CSS logic (#3311)
Fixes #3298.
2022-05-11 14:20:19 -07:00
Christophe Coevoet
012f79f373
Add the syntax definition for the import rule (#3294) 2022-04-26 12:34:58 -07:00
Christophe Coevoet
066d10831d
Fix the algorithm computing the default use namespace (#3289)
Co-authored-by: Jennifer Thakar <jathak@google.com>
2022-04-25 13:58:47 -07:00
Natalie Weizenbaum
8b5c8cf42e
Mark the deep-merge-order spec as accepted (#3293) 2022-04-22 17:27:23 -07:00
なつき
12cee2dab9
Fix incorrect documentation for url in StringOptionsWithoutImporter (#3278) 2022-04-11 17:09:26 -07:00
Jennifer Thakar
b1cd040fed
Add support for :where (#3283)
Fixes #3130.

In addition to updating the procedure for extending a simple selector to
treat `:where` the same as `:is` and `:matches`, this also modifies the
second law of extend to account for specificity being modified by
pseudoselectors like `:where`.

This is a fast-track proposal.
2022-04-06 19:19:51 -07:00
Jennifer Thakar
e528c816d2
Don't simplify calcs in supports declarations (#3272)
This is a fast-track proposal.

Closes #3259.
2022-03-30 15:14:44 -07:00
Christophe Coevoet
f355f602fc
Add the sourceMapIncludeSources option in the new JS API (#3226) 2022-01-14 16:38:28 -08:00
Natalie Weizenbaum
809bc03b48
Fix some incorrect documentation/typings in LegacyPluginThis.options (#3246)
The new documentation/typings reflect the actual behavior of both Node
Sass and Dart Sass.
2022-01-13 18:03:46 -08:00
Natalie Weizenbaum
ade3787da2
Add a type annotation for the top-level NULL field (#3243) 2022-01-11 17:28:10 -08:00
Natalie Weizenbaum
72974e1ec9
Add type annotations for the top-level TRUE and FALSE fields (#3241) 2022-01-07 14:34:44 -08:00
Natalie Weizenbaum
a9aa972e44
Add type annotations for the sass.types.Error class (#3238) 2022-01-05 16:39:32 -08:00
Natalie Weizenbaum
4b48b0e990
Add a type declaration for LegacyPluginThis.options.context (#3236) 2022-01-05 16:08:51 -08:00
Natalie Weizenbaum
b51895ec1d
Make LegacyAsyncFunction type more usable (#3237)
TypeScript requires that a callback type with a rest parameter be
passed a callback with a rest parameter. This makes it awkward to pass
in functions with a known number of parameters, as in
`foo($arg): (value, done) => { /* ... */ }`. This type declaration
makes that easier (although callers still need to explicitly declare a
type for the `done` parameter).
2022-01-05 16:08:41 -08:00
Natalie Weizenbaum
a93aec7092
Allow SassFunction signatures to be checked on return (#3220)
This allows implementations to avoid needing to have an
easily-accessible Sass parser in JS.
2021-12-21 13:21:19 -08:00
Natalie Weizenbaum
99168e0cbf
Make LegacyFileOptions.data optional (#3215)
If this is mandatory, the compiler will complain if it's not passed,
but it's typed as `never` so it's impossible to pass a valid value.
2021-12-10 21:11:38 +00:00
Natalie Weizenbaum
23278f2c92
Use the URL type from the DOM definitions, not from Node (#3214)
The two aren't quite interchangeable: the Node definition has a few
more fields, which means that URLs created naively with `new URL()`
aren't assignable to that type.
2021-12-10 21:11:27 +00:00
Natalie Weizenbaum
b192519b55
Document the new JS API (#3183) 2021-11-30 23:32:04 +00:00
Natalie Weizenbaum
ebbc52877a
Make the new JS API a bit more idiomatic (#3200)
This takes more advantage of overloads and unions rather than
using factory constructors or methods with different names.
2021-11-30 00:10:42 +00:00
Natalie Weizenbaum
ea3d97b8d6
Replace FileImporterResult with a plain URL (#3180)
Supplying a source map URL doesn't make sense for a file importer, for
two reasons:

1. A canonical `file:` URL is already the recommended source map URL
   because it's always available on the local system.

2. Because a FileImporter doesn't know the fully-resolved canonical
   URL of the file it loads, it doesn't have any way of determining
   what the full source map URL should be anyway.
2021-10-09 01:19:02 +00:00