Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into feature.color-4 #262

Merged
merged 8 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,57 @@
## 1.69.5

### JS API

* Compatibility with Node.js 21.0.0.

## 1.69.4

* No user-visible changes.

## 1.69.3

### Embedded Sass

* Fix TypeScript type locations in `package.json`.

## 1.69.2

### JS API

* Fix a bug where Sass crashed when running in the browser if there was a global
variable named `process`.

## 1.69.1

* No user-visible changes.

## 1.69.0

* Add a `meta.get-mixin()` function that returns a mixin as a first-class Sass
value.

* Add a `meta.apply()` mixin that includes a mixin value.

* Add a `meta.module-mixins()` function which returns a map from mixin names in
a module to the first-class mixins that belong to those names.

* Add a `meta.accepts-content()` function which returns whether or not a mixin
value can take a content block.

* Add support for the relative color syntax from CSS Color 5. This syntax
cannot be used to create Sass color values. It is always emitted as-is in the
CSS output.

### Dart API

* Deprecate `Deprecation.calcInterp` since it was never actually emitted as a
deprecation.

### Embedded Sass

* Fix a rare race condition where the embedded compiler could freeze when a
protocol error was immediately followed by another request.

## 1.68.0

* Fix the source spans associated with the `abs-percent` deprecation.
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-embedded-darwin-arm64",
"version": "1.68.0",
"version": "1.69.5",
"description": "The darwin-arm64 binary for sass-embedded",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-embedded-darwin-x64",
"version": "1.68.0",
"version": "1.69.5",
"description": "The darwin-x64 binary for sass-embedded",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-embedded-linux-arm",
"version": "1.68.0",
"version": "1.69.5",
"description": "The linux-arm binary for sass-embedded",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-embedded-linux-arm64",
"version": "1.68.0",
"version": "1.69.5",
"description": "The linux-arm64 binary for sass-embedded",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-ia32/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-embedded-linux-ia32",
"version": "1.68.0",
"version": "1.69.5",
"description": "The linux-ia32 binary for sass-embedded",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-embedded-linux-x64",
"version": "1.68.0",
"version": "1.69.5",
"description": "The linux-x64 binary for sass-embedded",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-ia32/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-embedded-win32-ia32",
"version": "1.68.0",
"version": "1.69.5",
"description": "The win32-ia32 binary for sass-embedded",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-embedded-win32-x64",
"version": "1.68.0",
"version": "1.69.5",
"description": "The win32-x64 binary for sass-embedded",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "sass-embedded",
"version": "1.68.0",
"version": "1.69.5",
"protocol-version": "2.3.0",
"compiler-version": "1.68.0",
"compiler-version": "1.69.5",
"description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol",
"repository": "sass/embedded-host-node",
"author": "Google Inc.",
"license": "MIT",
"exports": {
"import": {
"types": "./dist/lib/index.m.d.ts",
"types": "./dist/types/index.m.d.ts",
"default": "./dist/lib/index.mjs"
},
"types": "./dist/lib/index.d.ts",
"types": "./dist/types/index.d.ts",
"default": "./dist/lib/index.js"
},
"main": "dist/lib/index.js",
Expand All @@ -35,14 +35,14 @@
"test": "jest"
},
"optionalDependencies": {
"sass-embedded-darwin-arm64": "1.68.0",
"sass-embedded-darwin-x64": "1.68.0",
"sass-embedded-linux-arm": "1.68.0",
"sass-embedded-linux-arm64": "1.68.0",
"sass-embedded-linux-ia32": "1.68.0",
"sass-embedded-linux-x64": "1.68.0",
"sass-embedded-win32-ia32": "1.68.0",
"sass-embedded-win32-x64": "1.68.0"
"sass-embedded-darwin-arm64": "1.69.5",
"sass-embedded-darwin-x64": "1.69.5",
"sass-embedded-linux-arm": "1.69.5",
"sass-embedded-linux-arm64": "1.69.5",
"sass-embedded-linux-ia32": "1.69.5",
"sass-embedded-linux-x64": "1.69.5",
"sass-embedded-win32-ia32": "1.69.5",
"sass-embedded-win32-x64": "1.69.5"
},
"dependencies": {
"@bufbuild/protobuf": "^1.0.0",
Expand Down
3 changes: 2 additions & 1 deletion tool/prepare-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ void (async () => {
await getLanguageRepo('lib/src/vendor');

console.log('Transpiling TS into dist.');
shell.exec('tsc');
shell.exec('tsc -p tsconfig.build.json');
shell.cp('lib/index.mjs', 'dist/lib/index.mjs');

console.log('Copying JS API types to dist.');
shell.cp('-R', 'lib/src/vendor/sass', 'dist/types');
shell.cp('dist/types/index.d.ts', 'dist/types/index.m.d.ts');
await fs.unlink('dist/types/README.md');

console.log('Ready for publishing to npm.');
Expand Down
Loading