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

chore(deps): update dependency snowpack to v2 #7

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jun 1, 2020

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
snowpack ^1.7.1 -> ^2.0.0 age adoption passing confidence

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

New Official Plugin: Sass

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

Add Svelte "Fast Reload"

Bug fixes and other improvements

v2.13.3

Compare Source

Fixes and improvements

v2.13.2

Compare Source

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

v2.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

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.

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 👍

v2.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

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!

v2.12.0

Compare Source

v2.11.1

Compare Source

New optimized build plugin: @​snowpack/plugin-optimize

Screenshot

Thanks to @​drwpow for spearheading this work.

HMR/Livereload enabled for build --watch mode

Screenshot

@​MoonBall led this project (#​1008) from start to finish 👏 👏 👏

Assorted fixes and improvements!

A 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!

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 @imports

TwitterScreenshotv2 10

Snowpack 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/@​import

Other Fixes and Improvements

New 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!

v2.9.0

Compare Source

A huge thanks to all of our contributors who made this release possible, including:

  • @​Akimyou, who fixed tricky issues in our HMR server
  • @​fubhy, who improved our process polyfilling logic
  • and @​MoonBall, who made several improvements across our plugin ecosystem, including a new config() hook!

See "Improvements / Bugfixes" below for a full list of relevant changes in this release:

⭐ NEW: Parallelized Builds

BuildRunner

#​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

discord

Click here to join!

🐛 All Improvements & Bugfixes
  • dev d9a6623 fix remote import url handling
  • dev c5490fd Improve HMR (#​827)
  • dev 07e4728 fix install error log to be more helpful
  • dev 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 template
  • create-snowpack-app:preact c9f3886 Preact: bump prefresh version

v2.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!
  • The app-template-react template now comes preloaded with React refresh! (#​829)
🐛 Improvements / Bugfixes
  • Dev server swallowing console logs has been fixed (#​762, #​807, #​809). Also as a bonus, we dropped ora as a dependency, lightening the build a little and improving Windows output.
  • CommonJS support has been improved (#​783)
  • Many module resolution & alias fixes for more stable development (#​777, #​554, #​789, #​796)

v2.7.7

Compare Source

Features

Bugfixes

v2.7.6

Compare Source

Features

  • Add app-template-svelte-typescript (#​701)

Bugfixes

  • FIxes breaking bug on Windows (#​731)

v2.7.5

Compare Source

Bugfixes

  • Fix same-directory relative URLs (#​698)

Features

v2.7.4

Compare Source

Bugfixes

v2.7.3

Compare Source

Bugfixes

  • Fix transform() bug for new plugin API (#​685)

v2.7.0

Compare Source

Lots of new features in this release:

  • Redesigned plugin API plus new guides for plugin authors
  • Import aliasing and new ways to customize Snowpack
  • Improved build performance with smaller, faster builds
  • New Svelte + TypeScript app templates
  • Bug fixes, usability improvements & more!

Read the blog post

v2.6.4

Compare Source

Fix

v2.6.3

Compare Source

Fix

v2.6.2

Compare Source

Fix

v2.6.1

Compare Source

Small Fix

v2.6.0

Compare Source

Export Map Support (#​539)

EbTyXp8U8AAVQHl

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

PS: Our webpack plugin

v2.5.4

Compare Source

Small Regression Fix

  • Fix issue where main was ignored on browser object packages (#​528) 2f30978

v2.5.3

Compare Source

Fixes and Improvements!

v2.5.2

Compare Source

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

Compare Source

Bugfixes

v2.5.0

Compare Source

Greater Customization & Control

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

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

  • 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

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

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

v2.3.0

Compare Source

v2.2.4

Compare Source

Fixes!

  • add check for Stream.readable.from for old node versions a995bb0
  • improve our plugi

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/snowpack-2.x branch from 0ba52e1 to bb7da6d Compare June 18, 2020 12:32
@renovate
Copy link
Author

renovate bot commented Jun 19, 2020

PR has been edited

👷 This PR has received other commits, so Renovate will stop updating it to avoid conflicts or other problems. If you wish to abandon your changes and have Renovate start over you may click the "rebase" checkbox in the PR body/description.

If you think this comment is in error and the branch is not modified, try deleting this comment. If it comes back again the next time Renovate runs, please submit an issue or seek config help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants