chore(deps): update dependency snowpack to v2 #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.7.1
->^2.0.0
Release Notes
snowpackjs/snowpack
v2.18.2
Compare Source
v2.18.1
Compare Source
v2.18.0
Compare Source
v2.17.1
Compare Source
v2.16.0
Compare Source
v2.15.1
Compare Source
v2.15.0
Compare Source
v2.14.3
Compare Source
v2.14.2
Compare Source
v2.14.1
Compare Source
v2.14.0
Compare Source
New App Template: Preact + TypeScript
f1ec251
- new: Add app-template-preact-typescript (#1238) @smashercosmoNew Official Plugin: Sass
68e8d77
- new: add plugin-sass with new onChange/markChanged interface (#1225)Add Svelte "Fast Reload"
00e724e
- feat: adding svelte-hmr (#1223) @rixo2c3e152
- feat: add bubbled esm-hmr property (#1232)Bug fixes and other improvements
f269fa6
- new: add testFiles support (#1196)d61d7d7
- feat: support partial HTML to not get hmr scripts injectedf57ca8a
- feat: Adding SRI hash(es) for HMR script resources (#1268) @marpmefa4e76a
- feat: add logger.debug calls to dev and build5da777b
- feat: add option to show hmr error overlay, update docs (#1239) @brianjacobs-natgeo30dfc5c
- feat: allow configuring the top levelthis
value (#1219) @fubhy442ad85
- fix: support files with no extension1f476b2
- fix: dev route match load orderdon't reach for fallback immediately1bfc48c
- fix: check if preact is being used in tsx (#1275) @intrnl627aa2e
- fix: hmr bug in react/preact update codeb6df4e1
- fix: scanImports() function reads all files at once, can cause EMFILE in larger projects #1245 (#1256) @N8-B899dd10
- fix: favicon 404 ignore error55fb2f7
- fix: Recovers webpack magic comments and adds to import (#1243) @N8-B1faf063
- [plugin-svelte] fix: Svelte plugin SSR bug; add test (#1241) @drwpowd34c194
- [react-refresh] feat: add private property support to react-refesh plugin1ef62f0
- [build-script] fix: do not assume a build script failed completely if there's stderr (#1255) @fubhy75ad503
- test: Writing the first docs test and fixing the broken anchor link errors it found (#1233) @melissamcewenv2.13.3
Compare Source
Fixes and improvements
9a9c3ac
- docs: update tailwind import path (#1205) @stefanfrede04bed2b
- snowpack: partition the build cache (#1195)a4ef47c
- snowpack: support dev streaming logs (#1203)2b3670f
- snowpack: add cli flag support for "experiments.ssr" (--ssr)d03cb5c
- esinstall: handle cjs auto-named-exports with deep reexports (#1194)710262d
- esinstall: move trivial warnings to debug (#1193)d86e495
- [plugin-typescript] New plugin! (#1211)f515365
- [plugin-svelte] simplify svelte plugin (#1221) @Rich-Harrisd4b21d3
- [plugin-webpack] Use default name behavior. (#1215) @heikkilamarkof61a703
- [template-svelte] remove outdated babel config file3ab3842
- [template-svelte] update svelte templates to match react, preactv2.13.2
Compare Source
Bug fixes & improvements
0f50082
- Add homepage and repository properties for all published package.json files (#1198) @patdx1df4e16
- fix: cjs<>esm auto interop needed a duplicate "default" export filter09ec6b5
- fix: snowpack would fail to run if no node_modules/ directory existed339a47f
- fix: Snowpack HMR error reporter now reports more useful errors86f1c16
- fix: add chai to default esinstall namedExports listv2.13.1
Compare Source
Note: v2.13.0 was skipped. v2.13.1 is the first official v2.13 release!
Introducing Snowpack v2.13 - The DX Update. This entire release focused on developer quality-of-life with new features to simplify config, update error logging, and remove all unnecessary friction from your dev environment. It's genuinely one of my favorite releases so far, so I hope you enjoy an even better dev experience with Snowpack.
-- @FredKSchott
Simplified CSA Templates + Fast Refresh Improvements
All of our Create Snowpack App (CSA) templates have been improved this week, but the React & Preact templates got the biggest upgrades. They both sport a new design with a basic counter, perfect for testing that Fast Refresh is working (change the file, and see that the counter doesn't lose state). Behind the scenes, both Fast Refresh plugins have been updated to no longer require Babel externally, which means you can take advantage of our faster, built-in esbuild-powered pipeline.
55bbc83
- add example usage of fast refresh to react/preact templates (#1188)d69dbfe
- refactor react-refresh plugin, babel user-dependency no longer needed (#1178)2f19fd0
- update to latest prefresh/snowpack plugin54fadca
- CSA - move config back into templates, out of app-scripts-* packages (#1137)Automatic "New Dependency" Handling
Tired of having to use that dumb
--reload
flag? We were too! Snowpack now automatically re-installs dependencies when a new import is added. This feature keeps your work flowing with fewer unnecessary interruptions.7593243
- Re-implement dev dependency automatic handling (#1161)Automatic CJS "namedExport" Detection
Node.js recently announced that they were attempting automatic CJS<>ESM named export interop. Not to be outdone, we announced that we'd do the same :) This feature means no more manual
namedExport
entries needed for most packages. Instead, Snowpack will attempt to automatically scan CJS packages for exports.Snowpack uses the exact same internal lexer as Node.js to implement this, so expect to see the same results as Node.js v14 when you import a CJS npm package in ESM. However, this is a new idea that may still have some rough edges. If you see mixed results, remember that you can still use a manual "namedExports" config entry to use our more powerful runtime CJS detection.
00feade
- cjs auto-detection on by default (#1163)Logging/Debugging Improvements
Snowpack v2.12 added our first ever Error Overlays. Snowpack v2.13 improves on that work with a full suite of improvements to logging, log formatting, and making sure that all reported errors contain relevant info. Our favorite subtle-but-great feature: Multiple "File Changed..." logs in a row are now counted and collapsed, giving you a cleaner dev console overall.
93e3478
- reduce verbose file changed events in the logs (#1190)f2279c8
- cleanup hmr error logginga809fcc
- improve error handing (#1180)e59ae05
- add default favicon to dev server, if none exists (#1177)Better Sourcemap Support
No matter what I try to do to stop you, y'all keep improving our source map support! This release featured work by @pkaminski to add compose multiple source maps together, allowing for source maps in multi-step build pipelines. We have more improvements to add inside of Snowpack to really tighten this story up, but this is a huge step in the right direction 👍
d8131c2
- Allow plugins that transform code to return source maps, and compose them together. (#1048) @pkaminski5aef32a
- fix source map stripping issue (#1146)bcc1fbc
- fix dependency sourcemap issuev2.13.0
Compare Source
v2.12.1
Compare Source
Note: v2.12.0 was skipped. v2.12.1 is the first official v2.12 release!
New: Live Error Overlays
Snowpack v2.12 now includes Live Error Overlays to surface build & runtime errors immediately during development. No more searching around for what exactly went wrong. Instead, you'll see every problem surfaced right in the application itself.
To see the new error overlays, just upgrade Snowpack in your project and run
snowpack dev
!A huge thanks to the Next.js team for the beautiful “react-dev-overlay” package template that these overlays are based on!
e373499
- add runtime error overlay reporting (#1142)6ed5359
- Advanced HMR Error Handling (2 of 2: Error Overlay) (#1073)New: Vue 3.0 templates (incl. TypeScript!)
Vue 3.0 was released last week! To celebrate, we updated our Vue + Snowpack template to the latest version AND launched a new template for building Vue sites with TypeScript. Run
create-snowpack-app
with the new@snowpack/app-template-vue-typescript
template to see it in action.2a94ff1
- Feature/app-template-vue-typescript (#1088) @Akimyou3a7b097
- updating to vue 3.0.0 @melissamcewen4329d56
- remove bad vue template compiler option (#1101) @coolzjyA new look for the docs site!
#### Exploring SSRWe've been exploring a better Server-Side Rendering (SSR) support story for Snowpack (in collaboration with members of the Svelte community) and this release marks the first features & improvements merged into Snowpack for SSR!
This is still an experimental area for us, but it's one we're really excited about investing in. More to come over the next several releases!
Want to get involved? Join us on Discord!
eba63e3
- Fixes #970 by adding middleware dev config option. (#1062) @joshwilsonvu05b2a9e
- Add experimental SSR support for the dev server (#1086) @FredKSchottA ton of other bug fixes and improvements!
95857f0
- [esinstall] add dts package handling (#1133) @FredKSchott20388e4
- [esinstall] enable native esm for node v12+ (#1093) @FredKSchottaf3c6c5
- [plugin-svelte] fix the dev option for dependencies (#1134) @FredKSchott9891763
- [plugin-webpack] fix unnamed import scanning @FredKSchottf2dad02
- [plugin-react-refresh] add plugin error message if setup script not run (#1123) @FredKSchott439d3f4
- [csa:app-scripts-react] add back react typescript support (#1071) @FredKSchott42e48f3
- [csa:app-scripts-preact] add new babel plugin to enable context HMR (#1080) @JoviDeCroock5056a69
- configure hmr port @MoonBall884e4ab
- configure run jobs to run in watch mode on build --watch (#1091) @FredKSchott636443d
- rethrow error of transform phase (#1095) @MoonBall21610bc
- Ensure that the import resolver respects installOptions.externalPackage. (#1070) @pkaminski11c0eb5
- Add live reload delay (#998) @jaredramirez9b7ad5c
- Add .avif format to static types (#1066) @stramelv2.12.0
Compare Source
v2.11.1
Compare Source
New optimized build plugin: @snowpack/plugin-optimize
Thanks to @drwpow for spearheading this work.
HMR/Livereload enabled for
build --watch
mode@MoonBall led this project (#1008) from start to finish 👏 👏 👏
Assorted fixes and improvements!
0c5390d
- feat(plugin-vue): Improve TS, JSX support (#984) @Akimyoufa4190d
- feat(plugin-webpack): implement html minifier (#1015) @stefanfrede3564ee5
- fix(plugin-webpack): allow omitting options (#1047) @ralphtheninja2926370
- fix: Inline process.env variable references directly when installing. (#1044) @pkaminski1667143
- fix: Windows process exit properly. (#1022) @pkaminski936b524
- fix: casing of module locations to match that used by Rollup. (#999) @pkaminskiA huge thanks to all of our contributors for this release!
v2.11.0
Compare Source
v2.10.3
Compare Source
v2.10.2
Compare Source
Bug fixes and more!
2966ec4
- fix css import url resolver (#1001)549caa2
- remove source mapping url263c2b1
- Remove the process polyfill's dependency on window, so it can run in web workers. (#994)27ce2db
- fix greedy css import regex (#991)5df8c55
- Fix HTML_JS_REGEX (#986)ac04f91
@snowpack/app-scripts-preact
- update @prefresh/snowpack dep2be375a
@snowpack/plugin-webpack
- add manifest to webpack plugin (#983)v2.10.1
Compare Source
Some "build" command fixes
fix(build)
: any file error exited the build in watch mode (#981)fix(build)
: run script errors were ignored (#981)fix(build)
: --watch mode would exit instead of watching (#981)v2.10.0
Compare Source
🆕 Native CSS
@import
sSnowpack now supports automatic scanning and resolution of your native CSS
@import
statements. Use it to load CSS, Sass, Less, and any compile-to-CSS language you already have defined in your build pipeline. We even support npm package imports.See our documentation for more info: https://www.snowpack.dev/#css-imports-(%40import)
Learn more about CSS
@import
syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/@importOther Fixes and Improvements
43cf5ce
- fix: handle comments in import specifiers (#594b112148
- fix: handle plugin buffer response (#950)d484739
- fix: tree shaking package when imports include file extensions (#972) @MoonBall0398fc3
- fix: supportsnowpack.config.cjs
config files, fortype: module
projects (#968) @lewisl90295372aab
- fix: %PUBLIC_URL% replacement in dev server (#957)de040f2
- fix: exit process after success (#956) @lukeed2905af5
- fix: console logger methods log all arguments passed (#951)75b23c3
- fix: proxy file when dev (#940) @moonball843cf9e
- code cleanup (#949) @moonballNew Logos!
CircleHD (@circlehddev) & Tongdun added to our "Who's using Snowpack" section!
v2.9.3
Compare Source
v2.9.2
Compare Source
v2.9.1
Compare Source
🎊 Bug Fixes & Improvements Galore!
openChrome
occurs error (#894) <@MoonBall>%SNOWPACK_PUBLIC_*%
and%MODE%
environment variables in HTML (#900) <@gr2m>SNOWPACK_PUBLIC_
env variable when generating__snowpack__/env.js
(#924) <@gr2m>v2.9.0
Compare Source
A huge thanks to all of our contributors who made this release possible, including:
process
polyfilling logicconfig()
hook!See "Improvements / Bugfixes" below for a full list of relevant changes in this release:
⭐ NEW: Parallelized Builds
#808 - The build command now runs multiple builds in parallel, one job for every core available on your machine. Snowpack build plugins can take advantage of this new support by offloading computationally consuming work to child processes, allowing Node.js to parallelize the work. Several of our plugins already support this:
@snowpack/plugin-build-script
: Builds each file by running a CLI command in a separate thread.@snowpack/plugin-babel
: Spins up a pool of workers to run multiple Babel builds in parallel.esbuild
: Our default JSX/TypeScript builder is built with Go, and supports parallel builds.The result? ~2x faster builds when parallel-enabled plugins are used. If your plugins are not yet built to take advantage of this feature, there should be no impact on performance.
⭐ NEW: Snowpack + Pika Discord Community
Click here to join!
🐛 All Improvements & Bugfixes
dev
d9a6623
fix remote import url handlingdev
c5490fd
Improve HMR (#827)dev
07e4728
fix install error log to be more helpfuldev
6950266
support the html extension in dev server (#870)build
582d0ed
Support treeshaking when importing React by namespace (#879)build
ee05c28
ignore build directory in default build (#874)install
dde6a77
feat: add rollup plugin for polyfilling the global process object (#854)plugins
5b0fe76
add config() hook (#864)plugins
42493b6
update transform plugin to use id instead of filepath (#837)plugins:webpack
17e93b6
Webpack: fix wrong logic when extendConfig's plugin has options. (#842)create-snowpack-app:svelte
149515f
Svelte: fix tsconfig for svelte templatecreate-snowpack-app:preact
c9f3886
Preact: bump prefresh versionv2.8.0
Compare Source
⭐ New
snowpack build --watch
mode: have snowpack build to disk on every file change. Great if you are running your own server, such as Rails (#782).@snowpack/plugin-vue
has a new error output (#809). Give it a try!app-template-react
template now comes preloaded with React refresh! (#829)🐛 Improvements / Bugfixes
ora
as a dependency, lightening the build a little and improving Windows output.v2.7.7
Compare Source
Features
Bugfixes
v2.7.6
Compare Source
Features
app-template-svelte-typescript
(#701)Bugfixes
v2.7.5
Compare Source
Bugfixes
Features
v2.7.4
Compare Source
Bugfixes
v2.7.3
Compare Source
Bugfixes
v2.7.0
Compare Source
Lots of new features in this release:
Read the blog post
v2.6.4
Compare Source
Fix
typeof process
check (#563)1e1b3c9
2999d64
v2.6.3
Compare Source
Fix
5543dc7
262c08b
v2.6.2
Compare Source
Fix
.
from build extension matcher (#557)e21b453
v2.6.1
Compare Source
Small Fix
23289f4
v2.6.0
Compare Source
Export Map Support (#539)
Snowpack now supports export maps! As of Node v12 (LTS) package authors have the chance to define an explicit set of file entrypoints inside of their package. Snowpack will now respect these export maps, and warn if you try to import a file outside of them. `import 'preact/some-private-package-file.js' will now throw an error to match Node.js behavior.
See Node's official documentation for more: https://nodejs.org/api/esm.html#esm_package_entry_points
Optimized Build Dependencies (#526)
As a part of your production build, Snowpack now scans your build output to optimize your dependencies. Previously, Snowpack would tree-shake by scanning your source code, which gave less accurate results. This new feature gives you an even better-optimized tree-shaking result, and fixes issues where your build pipeline actually adds/removes imports.
Other Features & Fixes
f29b9fe
5653cdf
5e6fc22
641cc81
55fb04c
externalPackage
): now matches deep imports within an external package (#533)f60ae3d
import {unstable_installCommand} from 'snowpack';
(#525)d203b02
b538d68
e7d67ff
PS: Our webpack plugin
v2.5.4
Compare Source
Small Regression Fix
2f30978
v2.5.3
Compare Source
Fixes and Improvements!
unstable_Install
) (#518)22b4362
a863c8f
ab78391
df3a7e4
1e1472b
fb9b672
6b1eba6
v2.5.2
Compare Source
Bugfixes
fd1f3a6
hmrEngine
ReferenceError in dev (#495)a047967
v2.5.1
Compare Source
Bugfixes
package.json
homepage
->baseUrl
support (#491)32271da
v2.5.0
Compare Source
Greater Customization & Control
buildOptions.baseUrl
(#480)859590f
%PUBLIC_URL%
support (#474)f268af6
web_modules/
directory location (#483)711a816
buildOptions.metaDir
option (#456)b76ce6e
installIOptions.namedExports
to support named exports in CJS packages (#452)35112ac
Fixes!
9012752
a4111a4
d0a7e41
4f9403b
3280de3
5adee6d
58dba0e
5366dfb
.mjs
to file extension mapf79ec28
.elm
to file extension mapa18f314
97f6c1f
33cfd1c
v2.4.0
Compare Source
Add HTTPS/HTTP2 server (#422)
3266d9b
Snowpack now supports the
snowpack dev --secure
flag, which will run your dev server via HTTP2. This is much faster than HTTP/1.1 for unbundled applications like Snowpack's dev app.HTTP/2 is powered by HTTPS, which requires a bit of additional setup for your dev environment to work properly. On your first run of Snowpack with the
--secure
flag, you'll be shown instructions to generate credentials to use for HTTPS.Small Fixes & Improvements
c489384
72933b3
78a27ff
a29339a
171ae8e
546c94e
4ebb6c8
1727f88
6742556
07b0fb1
v2.3.1
Compare Source
Upgrade Rollup for Better CJS Support (#421)
The Rollup team has done some great work on their ESM<->Common.js interop story, and now supports many more packages that previously caused problems (ex: Formik). This release upgrades Snowpack to the latest set of Rollup dependencies to take advantage of these great features.
If you've had trouble with dependencies in the past, check out this new version.
NOTE: This upgrade deprecates our use of
namedExports
config in your Snowpack config file. This is considered "no longer needed" by Rollup and safe to remove.Better Treeshaking Support
#421 also let us add back in our Snowpack v1 support for better tree-shaking when you build for production. This will greatly increase the performance of some projects for both bundled and unbundled builds. In one case, a FluentUI user saw their dependency size drop by 80%! 😱
Treeshaking is enabled by default when you run
snowpack build
, but you can control it yourself via the--treeshake
and--no-treeshake
flags.Small Fix
2a18308
v2.3.0
Compare Source
v2.2.4
Compare Source
Fixes!
a995bb0
Renovate configuration
📅 Schedule: "before 3am on Monday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.