- #2684
20cbe440a
Thanks @melnikov-s! - Expose renderLoading on AsyncComponentType
- Updated dependencies [
a3b5c3fc0
]:- @shopify/[email protected]
- @shopify/[email protected]
-
#2608
ba4da84d5
Thanks @BPScott! - Useimport type
everywhere that we deal with importing types -
Updated dependencies [
ba4da84d5
]:- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
-
#2593
2f731db68
Thanks @BPScott! - Remove unneededvoid 0
class property initializations -
#2595
93ec0a0e5
Thanks @BPScott! - Useimport type
when importing types -
Updated dependencies [
2f731db68
,93ec0a0e5
]:- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- #2545
bd204450f
Thanks @devisscher! - Add a sensitivity check to the Prefetcher component
- Updated dependencies [
2aa32e8b8
]:- @shopify/[email protected]
- @shopify/[email protected]
- #2409
0bff6fad7
Thanks @BPScott! - Update types to account changes in TypeScript 4.8 and 4.9. Propogate contstraints on generic types and update type usage relating toWindow
andNavigator
. Technically this makes some types stricter, as attempting to passnull|undefined
into certain functions is now disallowed by TypeScript, but these were never expected runtime values in the first place.
- Updated dependencies [
0bff6fad7
,0bff6fad7
]:- @shopify/[email protected]
- Updated dependencies []:
- @shopify/[email protected]
-
#2408
2094cb39a
Thanks @BPScott! - Internal typing adjustments as a result of updating Typescript -
Updated dependencies []:
- @shopify/[email protected]
- Updated dependencies []:
- @shopify/[email protected]
-
#2389
03c1abc8c
Thanks @BPScott! - Add types field to package.json export maps to support typescript consumers that usemoduleResolution: "node16"
-
Updated dependencies [
03c1abc8c
]:- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- Updated dependencies [
b42a99a7d
]:- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- No updates. Transitive dependency bump.
- Drop support for node 12 and Safari 10, 11 and 12. Remove wildcard export in exports field. [#2277]
- Explicitly type children in a component defined in a test [#2266]
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- Correct wildcard export to
./*
[#2209]
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- Use
./*
instead of./
in package.json exports to fix deprecation warning. [#2184]
- Reduce usage of
@shopify/useful-types
by using built-in types. [#2163]
- No updates. Transitive dependency bump.
- Rerelease after failed publish. No code changes.
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- Fixed babel helpers file being generated with incorrect filename in esm build. [#2082]
- No updates. Transitive dependency bump.
- Migrate from
sewing-kit-next
toloom
for building - package build output remains identical. [#2039]
- No updates. Transitive dependency bump.
- Enable type checking in tests and fix type errors. [#2034]
- No updates. Transitive dependency bump.
- Added file exclusion for tests to package.json. [#2005]
- Updated build tooling, types are now compiled with TypeScript 4.3. [#1997]
- Ensure
tsconfig.tsbuildinfo
file is not uploaded to the npm registry. [#1982]
- Update to latest sewing-kit-next for build. Update
types
/typesVersions
fields to point directly into the build folder [#1980]
- Officially supports React
17.x
1969
- Update minimum supported node version to 12.14.0. Add engines field to help enforce usage of this version. #1906
- 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
- Removed dependency on deprecated
@shopify/javascript-utilities
package (#1560)
- Fixed a type issue with
usePreload
,usePrefetch
, anduseKeepFresh
hook arguments (#1404)
- Exported some additional types that can be useful for creating objects that can be used with
usePreload
,usePrefetch
, anduseKeepFresh
(#1153).
- Fixed an issue where async components would not be immediately available during server rendering
- Added the missing dependencies for
@shopify/react-idle
and@shopify/react-hydrate
Complete rewrite to support progressive hydration and hook-based prefetching. Please refer to the migration guide for details.
- Prefetching now happens on
touchdown
to improve perceived performance on touch devices (#708)
- Added a
useAsyncAsset
hook to register an identifier as used when not directly using theAsync
component (#702)
- Small refactor to export
resolve
utility (#649)
This library now requires React 16.8 because of changes to @shopify/react-effect
.
- Support the new
DeferTiming.InViewport
strategy (#576)
- The library now performs a more exhaustive obfuscation of
require
to reliably fool Webpack (#537)
- Fixed an issue where Webpack would complain about a dynamic
require
statement (#533)
Async
now attempts to resolve theid
of the component with a barerequire
call when it is available (#530)
createAsyncComponent
now accepts adefer
property that dictates whether that component should wait until mount or idle to start loading the component (#517)- The component returned from
createAsyncComponent
and its staticPreload
,Prefetch
, andKeepFresh
components all accept anasync
prop that is an object with an optionaldefer
property, which controls the way loading is done for just that element (#517)
- Fixed an issue where the
<Prefetcher />
would not watch user interactions by default.
- Fixed some broken API choices
- Initial release