Skip to content

Releases: FredKSchott/snowpack

snowpack@3.7.0

25 Jun 22:37
Compare
Choose a tag to compare
[skip ci] snowpack@3.7.0

v3.5.0

20 May 19:40
Compare
Choose a tag to compare
[skip ci] snowpack@3.5.0

v3.4.0

20 May 18:35
Compare
Choose a tag to compare

v3.3.7

30 Apr 00:58
Compare
Choose a tag to compare
[skip ci] snowpack@3.3.7

v3.3.6

29 Apr 22:46
Compare
Choose a tag to compare
[skip ci] snowpack@3.3.6

snowpack@2.14.0

12 Oct 06:10
Compare
Choose a tag to compare

New App Template: Preact + TypeScript

New Official Plugin: Sass

  • 68e8d77 - new: add plugin-sass with new onChange/markChanged interface (#1225)

Add Svelte "Fast Reload"

Bug fixes and other improvements

  • f269fa6 - new: add testFiles support (#1196)
  • d61d7d7 - feat: support partial HTML to not get hmr scripts injected
  • f57ca8a - feat: Adding SRI hash(es) for HMR script resources (#1268) @marpme
  • fa4e76a - feat: add logger.debug calls to dev and build
  • 5da777b - feat: add option to show hmr error overlay, update docs (#1239) @brianjacobs-natgeo
  • 30dfc5c - feat: allow configuring the top level this value (#1219) @fubhy
  • 442ad85 - fix: support files with no extension
  • 1f476b2 - fix: dev route match load orderdon't reach for fallback immediately
  • 1bfc48c - fix: check if preact is being used in tsx (#1275) @intrnl
  • 627aa2e - fix: hmr bug in react/preact update code
  • b6df4e1 - fix: scanImports() function reads all files at once, can cause EMFILE in larger projects #1245 (#1256) @N8-B
  • 899dd10 - fix: favicon 404 ignore error
  • 55fb2f7 - fix: Recovers webpack magic comments and adds to import (#1243) @N8-B
  • 1faf063 - [plugin-svelte] fix: Svelte plugin SSR bug; add test (#1241) @drwpow
  • d34c194 - [react-refresh] feat: add private property support to react-refesh plugin
  • 1ef62f0 - [build-script] fix: do not assume a build script failed completely if there's stderr (#1255) @fubhy
  • 75ad503 - test: Writing the first docs test and fixing the broken anchor link errors it found (#1233) @melissamcewen

snowpack@2.13.3

06 Oct 06:04
Compare
Choose a tag to compare

Fixes and improvements

snowpack@2.13.2

05 Oct 01:38
Compare
Choose a tag to compare

Bug fixes & improvements

  • 0f50082 - Add homepage and repository properties for all published package.json files (#1198) @patdx
  • 1df4e16 - fix: cjs<>esm auto interop needed a duplicate "default" export filter
  • 09ec6b5 - fix: snowpack would fail to run if no node_modules/ directory existed
  • 339a47f - fix: Snowpack HMR error reporter now reports more useful errors
  • 86f1c16 - fix: add chai to default esinstall namedExports list

Snowpack v2.13 - The Developer Experience Update

03 Oct 07:08
Compare
Choose a tag to compare

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

Screen Shot 2020-10-02 at 11 45 11 PM Screen Shot 2020-10-02 at 1 02 26 PM

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 plugin
  • 54fadca - CSA - move config back into templates, out of app-scripts-* packages (#1137)

Automatic "New Dependency" Handling

autonewpackage

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.

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.

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 👍

snowpack@2.12.1

28 Sep 02:47
Compare
Choose a tag to compare

Note: v2.12.0 was skipped. v2.12.1 is the first official v2.12 release!

New: Live Error Overlays

SvelteHMRDemo

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!

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.

A new look for the docs site!

Screen Shot 2020-09-27 at 7 03 34 PM

Exploring SSR

We'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!

A ton of other bug fixes and improvements!