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

v5 #562

Merged
merged 21 commits into from
Dec 10, 2022
Merged

v5 #562

Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
55c051d
feat: drop Node 10 and 12. Add 16 and 18 (#561)
benmccann Dec 10, 2022
4ae1ff1
perf: ⚡️ remove support for deprecated node-sass
kaisermann Dec 10, 2022
720a4c4
chore: update husky config to v8
kaisermann Dec 10, 2022
87572d0
chore: remove outdated examples folder
kaisermann Dec 10, 2022
499714e
chore: update local deps
kaisermann Dec 10, 2022
6d9d9e2
chore: move jest config to its own file
kaisermann Dec 10, 2022
25674d4
chore: fix type after svelte upgrade
kaisermann Dec 10, 2022
b3700a1
chore: use sass types for legacy render API. Support sync version only
kaisermann Dec 10, 2022
da8c01c
chore: update linter and formatter
kaisermann Dec 10, 2022
eb74349
docs: tell, that we use legacy api (#453)
bato3 Dec 10, 2022
f5c161b
chore: remove unused method
kaisermann Dec 10, 2022
2f2782d
fix: 🐛 remove support for 'type' attribute
kaisermann Dec 10, 2022
80ef8f4
test: fix scss dependencies test
kaisermann Dec 10, 2022
b486e2b
chore: rename coffeescript to coffee in test
kaisermann Dec 10, 2022
30a9287
feat: 🎸 bump minimum node version to 14
kaisermann Dec 10, 2022
ea19ca4
fix: 🐛 remove support for custom default languages
kaisermann Dec 10, 2022
a69db7f
chore(release): 5.0.0-alpha.0
kaisermann Dec 10, 2022
b380999
fix: 🐛 add sugarss v3 and v4 as supported
kaisermann Dec 10, 2022
7c177c9
fix: map .sss as .css to support sugarss extension
kaisermann Dec 10, 2022
0afd31c
docs: fix changelog
kaisermann Dec 10, 2022
7812792
chore(release): 5.0.0-alpha.1
kaisermann Dec 10, 2022
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [10, 12, 14]
node-version: [14, 16, 18]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
4 changes: 4 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm install
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

tsc --noEmit
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# [5.0.0-alpha.0](https://github.com/sveltejs/svelte-preprocess/compare/v4.10.5...v5.0.0-alpha.0) (2022-12-10)


### Bug Fixes

* 🐛 remove support for 'type' attribute ([2f2782d](https://github.com/sveltejs/svelte-preprocess/commit/2f2782d49f46a3e1dbfcd0463821d23baa04b271))
* 🐛 remove support for custom default languages ([ea19ca4](https://github.com/sveltejs/svelte-preprocess/commit/ea19ca4a9523fe1c82166ba57abbe147119d52f9))
* add pug const mixin ([#518](https://github.com/sveltejs/svelte-preprocess/issues/518)) ([0551a9b](https://github.com/sveltejs/svelte-preprocess/commit/0551a9b557ee18bb05a3e9021a8c9aa1f7b8c665)), closes [#467](https://github.com/sveltejs/svelte-preprocess/issues/467)
* paths in postcss sourcemap sources array ([#500](https://github.com/sveltejs/svelte-preprocess/issues/500)) ([2027375](https://github.com/sveltejs/svelte-preprocess/commit/2027375969255d11708340ee40eb2e3ded7ddb35))
* preserve `[@font-face](https://github.com/font-face)` inside `:global` block ([#486](https://github.com/sveltejs/svelte-preprocess/issues/486)) ([8064473](https://github.com/sveltejs/svelte-preprocess/commit/8064473ae107f6e2d34eb9590e4befa70ce4618c)), closes [#236](https://github.com/sveltejs/svelte-preprocess/issues/236)
* stylus - handle relative sourcemap sources([#513](https://github.com/sveltejs/svelte-preprocess/issues/513)) ([77bd3bf](https://github.com/sveltejs/svelte-preprocess/commit/77bd3bf69554afbc45d6f1e34a4eb5abf398a933))


### Features

* 🎸 bump minimum node version to 14 ([30a9287](https://github.com/sveltejs/svelte-preprocess/commit/30a9287c474241ef0bf03bade04404e120cb1ec7))
* drop Node 10 and 12. Add 16 and 18 ([#561](https://github.com/sveltejs/svelte-preprocess/issues/561)) ([55c051d](https://github.com/sveltejs/svelte-preprocess/commit/55c051d6a63e5f7da430c736b2384995c0ec706b))


### Performance Improvements

* ⚡️ remove support for deprecated node-sass ([4ae1ff1](https://github.com/sveltejs/svelte-preprocess/commit/4ae1ff1db17ff98d97be1a0ec538ef40d8affdcb))
kaisermann marked this conversation as resolved.
Show resolved Hide resolved


### BREAKING CHANGES

* 🧨 Languages must be explicitly defined via the lang attribute.
* 🧨 Minimum node version was bumped from 9 to 14
* 🧨 Cannot use "type" attribute to identify the language of a style or
script tag anymore. Use `lang` instead
* 🧨 node-sass is not supported anymore. Use `sass` instead
* minimum node version changed to v14



## [4.10.7](https://github.com/sveltejs/svelte-preprocess/compare/v4.10.5...v4.10.7) (2022-06-04)


Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $ npm install -D svelte-preprocess
- PostCSS: `npm install -D postcss postcss-load-config`
- SugarSS: `npm install -D postcss sugarss`
- Less: `npm install -D less`
- Sass: `npm install -D node-sass` or `npm install -D sass`
- Sass: `npm install -D sass`
- Pug: `npm install -D pug`
- Stylus: `npm install -D stylus`

Expand Down
4 changes: 1 addition & 3 deletions docs/preprocessing.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,7 @@ The `scss/sass` preprocessor accepts the default sass options alongside two othe
| Option | Default | Description |
| ---------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `renderSync` | `false` | if `true`, use the sync render method which is faster for dart sass. |
| `implementation` | `undefined` | pass the module to use to compile sass, if unspecified, `svelte-preprocess` will first look for `node-sass` and then for Sass. |

You can check the [Sass API reference](https://sass-lang.com/documentation/js-api/modules#LegacyOptions) for specific Sass options. The `file` and `data` properties are not supported. Instead, use the `prependData` property if you want to prepend some content to your `scss` content.
You can check the [Sass Legacy API reference](https://sass-lang.com/documentation/js-api#legacy-api) for specific Sass options. The `file` and `data` properties are not supported. Instead, use the `prependData` property if you want to prepend some content to your `scss` content.

Note: `svelte-preprocess` automatically configures inclusion paths for your root directory, `node_modules` and for the current file's directory.

Expand Down
3 changes: 0 additions & 3 deletions examples/svelte-rollup/.gitignore

This file was deleted.

68 changes: 0 additions & 68 deletions examples/svelte-rollup/README.md

This file was deleted.

Loading