Skip to content

Releases: FredKSchott/snowpack

v2.5.3

21 Jun 17:17
Compare
Choose a tag to compare

Fixes and Improvements!

  • Expose JS install function (unstable_Install) (#518) 22b4362
  • support type-only packages (#521) a863c8f
  • improve resolve logic for folders (#515, #519)
  • Fix warning message bug (#512) ab78391
  • Remove outdated homepage from Snowpack config (#511) df3a7e4
  • Adds secure option to the devOptions 1e1472b
  • Update src-file-extension-mapping.ts fb9b672
  • Collection of small fixes (#499) 6b1eba6
  • Update docs

v2.5.2...v2.5.3

v2.5.2

15 Jun 16:50
Compare
Choose a tag to compare

Bugfixes

  • Fix tree-shaking bug for side-effect-reliant libraries (common in lit-html projects) (#494) fd1f3a6
  • Fix hmrEngine ReferenceError in dev (#495) a047967

v2.5.1...v2.5.2

v2.5.1

12 Jun 22:41
Compare
Choose a tag to compare

Bugfixes

  • Fix package.json homepage -> baseUrl support (#491) 32271da

v2.5.0...v2.5.1

v2.5.0

12 Jun 22:24
Compare
Choose a tag to compare

Greater Customization & Control

  • Add buildOptions.baseUrl (#480) 859590f
  • Add %PUBLIC_URL% support (#474) f268af6
  • Add custom web_modules/ directory location (#483) 711a816
  • Add buildOptions.metaDir option (#456) b76ce6e
  • Add installIOptions.namedExports to support named exports in CJS packages (#452) 35112ac

Fixes!

  • remove flash of unrendered content for hmr 9012752
  • paint shouldn't clear install errors earlier in dev command (#486) a4111a4
  • handle errors in dev server d0a7e41
  • improve startup time (#482) 4f9403b
  • Add HMR support for linked & local npm packages (#470) 3280de3
  • cleanup unresolved error messages (#473) 5adee6d
  • add check to only transform js file imports 58dba0e
  • Fix HMR on secure server (#459) 5366dfb
  • add .mjs to file extension map f79ec28
  • add .elm to file extension map a18f314
  • html file changes should always trigger a full page reload 97f6c1f
  • Offer alternative port if specified port is busy 33cfd1c

v2.4.0...v2.5.0

v2.4.0

09 Jun 00:05
Compare
Choose a tag to compare

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

  • Add support for devOptions.hmr (#427) c489384
  • Fix treeshaking bug 72933b3
  • Fix issue with babel macro matching 78a27ff
  • Fix node polyfill plugin bug a29339a
  • Improve node polyfill error handling 171ae8e
  • Fix readline capture issue with simple stdin listener 546c94e
  • Fix HMR support for CSS modules (#438) 4ebb6c8
  • Fix install scanner to scan html files for JS deps as well 1727f88
  • Fix react-table esm workaround 6742556
  • Fix .svx usage 07b0fb1

v2.3.1...v2.4.0

v2.3.1

05 Jun 16:30
Compare
Choose a tag to compare

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

Note: v2.3.0 was published with an accidental breaking change, please use v2.3.1

v2.2.4...v2.3.1

v2.2.4

05 Jun 07:04
Compare
Choose a tag to compare

Fixes!

  • add check for Stream.readable.from for old node versions a995bb0
  • improve our plugin error message b0a6842

v2.2.3...v2.2.4

v2.2.3

04 Jun 04:40
Compare
Choose a tag to compare

Fixes!

  • handle readline close properly on Windows eb129d6
  • Enable compression on dev server responses (#419) e121749
  • improve handling of process exit 3ffb036
  • Fix bug with some imports in non-CSA projects 1e6852d, 575031e
  • Handle hmr websockets upgrade only for own hmr.js requests (#417) 54c982f

v2.2.2...v2.2.3

v2.2.2

03 Jun 03:44
Compare
Choose a tag to compare

Fixes

v2.2.1...v2.2.2

v2.2.1

02 Jun 06:10
Compare
Choose a tag to compare

Small stuff

v2.2.0...v2.2.1