- #2654
e470978cf
Thanks @BPScott! - Widen peerDependency range for webpack-virtual-modules, to allow for v0.5.x
-
#2593
2f731db68
Thanks @BPScott! - Remove unneededvoid 0
class property initializations -
#2595
93ec0a0e5
Thanks @BPScott! - Useimport type
when importing types
- #2567
85728a2f3
Thanks @alexandcote! - Fixing an issue with the babel-plugin when user try to importcreateWorkerFactory
orcreatePlainWorkerFactory
from@shopify/react-web-worker
-
#2526
eece629bd
Thanks @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
03c1abc8c
Thanks @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
babel
andwebpack
. [#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-workers
as 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-next
toloom
for 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
/typesVersions
fields to point directly into the build folder [#1980]
- Update
webpack-virtual-modules
to 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.1
in the list of dependencies. #1657
- Bump
webpack-virtual-modules
tov0.2.2
[#1484]
- Fixed an issue where imports would not be processed by the Babel plugin if multiple values were imported from
@shopify/web-worker
or@shopify/react-web-worker
.
- This library now exports a
createPlainWorkerFactory
function, which can be used to create a function that will createWorker
objects wrapping a module. This can be used in cases where the automatic wrapping of the worker in@shopify/rpc
is not desirable (#1174). - The functions returned by
createWorkerFactory
andcreatePlainWorkerFactory
now have aurl
property (#1174).
- Fixed an issue with messages being lost when using the
createIframeWorkerMessenger
function (#1174).
- Uses the new
@shopify/rpc
library for communication with the worker (#1172).
- You can now supply an optional options object to the
createWorkerFactory
functions. 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
createIframeWorkerMessenger
function. This function is passed to the newcreateMessenger
API, 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
webpackChunkName
comment (#1132)
terminate()
now releases the script created withURL.createObjectURL()
alongside terminating the worker.
createWorker
has been renamed tocreateWorkerFactory
(#1129).
- Fixed additional issues with
retain
andrelease
on deep structures (#1129).
createWorker
now works correctly when the webpack build uses only a pathname foroutput.publicPath
(#1126).retain
andrelease
now correctly deeply retain/ release objects and arrays.
createWorker
now 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/babel
now supports anoop
mode (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.