Skip to content

Commit 84f31f0

Browse files
authored
Update pubspec/changelog for pkg: importers (#2168)
1 parent 9ee5408 commit 84f31f0

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
## 1.71.0
2+
3+
For more information about `pkg:` importers, see [the
4+
announcement][pkg-importers] on the Sass blog.
5+
6+
[pkg-importers]: https://sass-lang.com/blog/announcing-pkg-importers
7+
8+
### JavaScript API
9+
10+
* Add a `NodePackageImporter` importer that can be passed to the `importers`
11+
option. This loads files using the `pkg:` URL scheme according to the Node.js
12+
package resolution algorithm. For example, `@use "pkg:bootstrap"` will load
13+
`node_modules/bootstrap/scss/bootstrap.scss`. The constructor takes a single
14+
optional argument, which indicates the base directory to use when locating
15+
`node_modules` directories. It defaults to
16+
`path.dirname(require.main.filename)`.
17+
18+
### Dart API
19+
20+
* Add a `NodePackageImporter` importer that can be passed to the `importers`
21+
option. This loads files using the `pkg:` URL scheme according to the Node.js
22+
package resolution algorithm. For example, `@use "pkg:bootstrap"` will load
23+
`node_modules/bootstrap/scss/bootstrap.scss`. The constructor takes a single
24+
argument, which indicates the base directory to use when locating
25+
`node_modules` directories.
26+
127
## 1.70.0
228

329
### JavaScript API

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass
2-
version: 1.70.0
2+
version: 1.71.0-dev
33
description: A Sass implementation in Dart.
44
homepage: https://github.com/sass/dart-sass
55

0 commit comments

Comments
 (0)