- #2816
4638287Thanks @admirsaheta! - - Allowoutput.chunkFilenameto be a function or string.compiler.options.output.filenameandcompiler.options.output.chunkFilenamenow default to[name].jswhen undefined.
- #2835
3a1077cThanks @jesstelford! - Ensure the correct babel types are used internally
- #2718
591e65366Thanks @dependabot! - Bump @babel/traverse from 7.17.9 to 7.23.2
- #2747
f019b983eThanks @robin-drexler! - Allow to override worker public path
- #2654
e470978cfThanks @BPScott! - Widen peerDependency range for webpack-virtual-modules, to allow for v0.5.x
-
#2593
2f731db68Thanks @BPScott! - Remove unneededvoid 0class property initializations -
#2595
93ec0a0e5Thanks @BPScott! - Useimport typewhen importing types
- #2567
85728a2f3Thanks @alexandcote! - Fixing an issue with the babel-plugin when user try to importcreateWorkerFactoryorcreatePlainWorkerFactoryfrom@shopify/react-web-worker
-
#2526
eece629bdThanks @atesgoral! - Remove the deprecated type attribute from generated HTML for <style> and <script> elements.Marking this as a breaking change because it may affect consumers expecting these attributes to be present.
- #2389
03c1abc8cThanks @BPScott! - Add types field to package.json export maps to support typescript consumers that usemoduleResolution: "node16"
- Drop support for node 12 and Safari 10, 11 and 12. Remove wildcard export in exports field. [#2277]
- Correct wildcard export to
./*[#2209]
- Export cjs by default for
babelandwebpack. [#2193]
- Use
./*instead of./in package.json exports to fix deprecation warning. [#2184]
- Rerelease after failed publish. No code changes.
- No updates. Transitive dependency bump.
- Added support for webpack 5 and removed support for webpack 4 [#2013]
- Update error messages to report
@shopify/web-worker. [#2088]
- No updates. Transitive dependency bump.
- Fixed babel helpers file being generated with incorrect filename in esm build. [#2082]
- Replaced this package with the contents of
@remote-ui/web-workersas of version1.5.7. This change was made in order to deprecate@remote-ui/web-workers; anyone who was previously using that package should move to depending on this one (@shopify/web-worker) instead.
- Migrate from
sewing-kit-nexttoloomfor building - package build output remains identical. [#2039]
- Enable type checking in tests and fix type errors. [#2011]
- Updated build tooling, types are now compiled with TypeScript 4.3. [#1997]
- Added file exclusion for tests to package.json. [#2005]
- Rename test/ to tests/ [#2005]
- Update to latest sewing-kit-next for build. Update
types/typesVersionsfields to point directly into the build folder [#1980]
- Update
webpack-virtual-modulesto 0.4.3 which support webpack 5
- Update minimum supported node version to 12.14.0. Add engines field to help enforce usage of this version. #1906
- Updated webpack dependency to be ^4.25.1
- Removed dependency on tslib, as we no-longer compile with
tsc. #1829
- Updated multi-build outputs to include mandatory extensions to fix "Module not found" issues reported by ESM supported bundlers #1759
- Add new build outputs (CommonJS, ESM, esnext, Node) for greater tree-shakability #1698
- Added
tslib@^1.14.1in the list of dependencies. #1657
- Bump
webpack-virtual-modulestov0.2.2[#1484]
- Fixed an issue where imports would not be processed by the Babel plugin if multiple values were imported from
@shopify/web-workeror@shopify/react-web-worker.
- This library now exports a
createPlainWorkerFactoryfunction, which can be used to create a function that will createWorkerobjects wrapping a module. This can be used in cases where the automatic wrapping of the worker in@shopify/rpcis not desirable (#1174). - The functions returned by
createWorkerFactoryandcreatePlainWorkerFactorynow have aurlproperty (#1174).
- Fixed an issue with messages being lost when using the
createIframeWorkerMessengerfunction (#1174).
- Uses the new
@shopify/rpclibrary for communication with the worker (#1172).
- You can now supply an optional options object to the
createWorkerFactoryfunctions. One option is currently supported:createMessenger, which allows you to customize the message channel for the worker (#1172). - To support creating workers that are not treated as same-origin, the library now provides a
createIframeWorkerMessengerfunction. This function is passed to the newcreateMessengerAPI, and works by creating a message channel directly from the host page to a worker in a sandboxediframe(#1172).
- Multiple workers in a single app now get unique names automatically, and can provide an explicit name for the worker file using the
webpackChunkNamecomment (#1132)
terminate()now releases the script created withURL.createObjectURL()alongside terminating the worker.
createWorkerhas been renamed tocreateWorkerFactory(#1129).
- Fixed additional issues with
retainandreleaseon deep structures (#1129).
createWorkernow works correctly when the webpack build uses only a pathname foroutput.publicPath(#1126).retainandreleasenow correctly deeply retain/ release objects and arrays.
createWorkernow falls back to using the module directly in cases (like the test environment) where the value is not transformed into a script URL (#1113)@shopify/web-worker/babelnow supports anoopmode (for generating a noop worker in environments that don’t supportWorker, like the server) and properly restricts transformations to only relevant packages (#1112)
Initial (pre-)release.