- Updated dependencies []:
- @shopify/react-async@5.5.3
- @shopify/react-cookie@2.1.4
- @shopify/react-hydrate@3.1.4
- @shopify/react-network@5.2.3
- @shopify/react-html@13.2.3
- Updated dependencies []:
- @shopify/react-async@5.5.2
- @shopify/react-cookie@2.1.3
- @shopify/react-hydrate@3.1.3
- @shopify/react-network@5.2.2
- @shopify/react-html@13.2.2
- Updated dependencies []:
- @shopify/react-async@5.5.1
- @shopify/react-cookie@2.1.2
- @shopify/react-hydrate@3.1.2
- @shopify/react-network@5.2.1
- @shopify/react-html@13.2.1
- Updated dependencies [
d691952]:- @shopify/react-network@5.2.0
- @shopify/react-effect@5.2.0
- @shopify/react-async@5.5.0
- @shopify/react-html@13.2.0
- @shopify/react-cookie@2.1.1
- @shopify/react-hydrate@3.1.1
- Updated dependencies [
8fa47ffa2]:- @shopify/sewing-kit-koa@9.3.1
- Updated dependencies [
97f8f6cf5,f50049004]:- @shopify/network@3.3.0
- @shopify/react-async@5.4.0
- @shopify/react-cookie@2.1.0
- @shopify/react-effect@5.1.0
- @shopify/react-html@13.1.0
- @shopify/react-hydrate@3.1.0
- @shopify/react-network@5.1.0
- @shopify/sewing-kit-koa@9.3.0
-
#2718
591e65366Thanks @dependabot! - Bump @babel/traverse from 7.17.9 to 7.23.2 -
Updated dependencies [
591e65366]:- @shopify/react-async@5.3.2
- @shopify/react-cookie@2.0.17
- @shopify/react-html@13.0.8
- @shopify/react-hydrate@3.0.12
- @shopify/react-network@5.0.17
- Updated dependencies []:
- @shopify/react-async@5.3.1
- @shopify/react-cookie@2.0.16
- @shopify/react-hydrate@3.0.11
- @shopify/react-network@5.0.16
- @shopify/react-html@13.0.7
- Updated dependencies [
20cbe440a]:- @shopify/react-async@5.3.0
-
#2659
c67ce27c1Thanks @patrickracicot! - Updates React.hydrate -> React.hydrateRootMarking this as breaking change as it will require consumers to upgrade to React 18.
Hydrating has been updated to support React.hydrateRoot. Apps that do not yet support React 18 will need to update to React 18 before updating to this version. React 18 supports concurrent rendering, which requires a new API for hydrating the server-rendered HTML. This PR updates the
react-serverpackage to use the new API.
- Updated dependencies []:
- @shopify/react-async@5.2.3
- @shopify/react-cookie@2.0.15
- @shopify/react-hydrate@3.0.10
- @shopify/react-network@5.0.15
- @shopify/react-html@13.0.6
-
#2608
ba4da84d5Thanks @BPScott! - Useimport typeeverywhere that we deal with importing types -
Updated dependencies [
ba4da84d5]:- @shopify/react-async@5.2.2
- @shopify/react-html@13.0.5
- @shopify/react-network@5.0.14
- @shopify/react-cookie@2.0.14
- @shopify/react-hydrate@3.0.9
-
#2593
2f731db68Thanks @BPScott! - Remove unneededvoid 0class property initializations -
#2595
93ec0a0e5Thanks @BPScott! - Useimport typewhen importing types -
Updated dependencies [
2f731db68,93ec0a0e5]:- @shopify/react-async@5.2.1
- @shopify/react-effect@5.0.3
- @shopify/react-network@5.0.13
- @shopify/sewing-kit-koa@9.1.1
- @shopify/react-cookie@2.0.13
- @shopify/react-html@13.0.4
- @shopify/react-hydrate@3.0.8
- Updated dependencies [
bd204450f]:- @shopify/react-async@5.2.0
- Updated dependencies []:
- @shopify/react-async@5.1.1
- @shopify/react-cookie@2.0.12
- @shopify/react-hydrate@3.0.7
- @shopify/react-network@5.0.12
- @shopify/react-html@13.0.3
-
#2574
0385b8f6eThanks @atesgoral! - Revert replacement of serialize-javascript with jsesc due to performance regression -
Updated dependencies [
0385b8f6e]:- @shopify/react-html@13.0.2
- @shopify/react-network@5.0.11
- @shopify/react-cookie@2.0.11
- Updated dependencies [
79adf2fc8]:- @shopify/react-html@13.0.1
- @shopify/react-network@5.0.10
- @shopify/react-cookie@2.0.10
- #2409
0bff6fad7Thanks @BPScott! - Update types to account changes in TypeScript 4.8 and 4.9. Propogate contstraints on generic types and update type usage relating toWindowandNavigator. Technically this makes some types stricter, as attempting to passnull|undefinedinto certain functions is now disallowed by TypeScript, but these were never expected runtime values in the first place.
- Updated dependencies [
0bff6fad7]:- @shopify/react-async@5.1.0
-
#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.
- Updated dependencies [
eece629bd]:- @shopify/react-html@13.0.0
- @shopify/react-network@5.0.9
- @shopify/react-cookie@2.0.9
- Updated dependencies [
248b45541]:- @shopify/sewing-kit-koa@9.1.0
- Updated dependencies []:
- @shopify/react-html@12.0.6
- @shopify/react-async@5.0.6
- @shopify/react-cookie@2.0.8
- @shopify/react-hydrate@3.0.6
- @shopify/react-network@5.0.8
- Updated dependencies [
2094cb39a]:- @shopify/react-async@5.0.5
- @shopify/react-html@12.0.5
- @shopify/react-hydrate@3.0.5
- @shopify/react-network@5.0.7
- @shopify/react-cookie@2.0.7
- Updated dependencies []:
- @shopify/react-html@12.0.4
- @shopify/react-async@5.0.4
- @shopify/react-cookie@2.0.6
- @shopify/react-hydrate@3.0.4
- @shopify/react-network@5.0.6
-
#2389
03c1abc8cThanks @BPScott! - Add types field to package.json export maps to support typescript consumers that usemoduleResolution: "node16" -
Updated dependencies [
03c1abc8c]:- @shopify/network@3.2.1
- @shopify/react-async@5.0.3
- @shopify/react-cookie@2.0.5
- @shopify/react-effect@5.0.2
- @shopify/react-html@12.0.3
- @shopify/react-hydrate@3.0.3
- @shopify/react-network@5.0.5
- @shopify/sewing-kit-koa@9.0.3
- Updated dependencies []:
- @shopify/react-async@5.0.2
- @shopify/react-html@12.0.2
- @shopify/react-cookie@2.0.4
- @shopify/react-hydrate@3.0.2
- @shopify/react-network@5.0.4
- Updated dependencies [
30005950b]:- @shopify/network@3.2.0
- @shopify/react-network@5.0.3
- @shopify/sewing-kit-koa@9.0.2
- @shopify/react-cookie@2.0.3
- Updated dependencies [
44eb34763]:- @shopify/network@3.1.0
- @shopify/react-network@5.0.2
- @shopify/sewing-kit-koa@9.0.1
- @shopify/react-cookie@2.0.2
- No updates. Transitive dependency bump.
- Drop support for node 12 and Safari 10, 11 and 12. Remove wildcard export in exports field. [#2277]
- No updates. Transitive dependency bump.
- 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]
- Remove dependency on
@shopify/useful-typesby using built-in types. [#2163]
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- Rerelease after failed publish. No code changes.
- No updates. Transitive dependency bump.
- Update
koa-composeto4.1.0[#2128]
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- Added support for webpack 5 and removed support for webpack 4 [#2013]
- 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-nexttoloomfor 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.
- Updated build tooling, types are now compiled with TypeScript 4.3. [#1997]
- Ensure
tsconfig.tsbuildinfofile is not uploaded to the npm registry. [#1982]
- Update to latest sewing-kit-next for build. Update
types/typesVersionsfields to point directly into the build folder [#1980]
- Officially supports React
17.x1969
- No updates. Transitive dependency bump.
- Include
setImmediatein tests. #1948
- 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
- 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
- Assign
ctx.state.quiltErrorto exception caught after server error. (#1667)
- Added
renderRawErrorMessageto the options forcreateRenderandcreateServer, controls rendering of raw stack or custom error page for SSR errors. Defaults to old behaviour, which is raw stack for development only.
- Added
htmlPropsto the options forcreateRenderandcreateServer, these props will be passed into the call to@shopify/react-html's<Html>component (#1661)
- Added
tslib@^1.14.1in the list of dependencies. #1657
- Allow
proxyoption to be specified by webpack plugin config (and forwarded tocreateServer). (#1598)
- Add request_id, hostname, and ips as part of the log. (#1579).
-
Change createServer default ip from
localhostto0.0.0.0and remove 3000 as a default port. (#1585) -
Allow
proxyandappoptions to be passed tocreateServer. (#1591)
- Move default options from webpack plugin into react-server. (#1514)
- 🛑 Replace
isomorphic-fetchwithcross-fetchas peer dependency. Consumer project should installcross-fetchin their project or use@shopify/sewing-kit >= v0.131.0(#1497)
-
Added
renderErroroption to rendering a custom Error page on production SSR errors.- Note: If
renderErroris not set, the server returns a fallback error page as a sane default for production SSR errors.
- Note: If
-
[webpack-plugin] Utilizes an
errorcomponent if it exists at the root ofapp/ui. This component will be imported in the server source and passed to@shopify/react-server'srenderErroroption when creating a server. This will also create a virtual client entrypoint for theerrorcomponent.
- Move
react-server-webpack-pluginintoreact-serverand expose it from@shopify/react-server/webpack-plugin(#1489)
- The
x-quilt-dataheader is now serialized under the IDquilt-datarather thanx-quilt-data
-
Removed the providers that were previously exported. To our knowledge nothing used them and they offered little value. If cookie context is needed users can manually use
CookieUniversalProviderfrom@shopify/react-cookie, andCSRFProvidershould not be necessary with the new strategies provided byquilt_rails. -
Add: Serialize
x-quilt-datareceived from the Rails server for use on the client (#1411)
- Allow
assetNameto take a function for apps which need to serve multiple sub-apps based on path [#1332]
- Added
assetNameoption to allow thenameto be passed and default tomain
- Updated dependency:
@shopify/sewing-kit-koa@6.2.0
createRendernow includes automatic sewing-kit-koa set-up. ThecreateRendermiddleware now accepts anassetPrefixthat is passed tosewingKitKoa's middleware. [#1160]
- Added missing
@shopify/react-cookiedependency
- Added universal cookies support using
@shopify/react-cookie. #1002
-
Sets a
Server-Timingresponse header with the duration of a request #990 -
New Providers utlities:
This function return a set of providers based on a given the of options.
A single component that renders all of the providers required within a typical React application.
- Add spacing between "[React Server]" prefix and logs #984
- Improved logger to provide more readable production logs in Splunk #978
- Server rendering no longer fails with erroneous errors about missing AsyncAssetContext / NetworkContext values #969
- Add rendering of
HydrationContextby default #969
- Now includes the full error stack as well as the error message when presenting SSR errors in development #901
- Added
Optionsobject as the second argument tocreateRender()allowing passed in values forafterEachPassandbetweenEachPass#911
createRendernow passses the unchangedKoa.Contextobject.
- actually passes in the headers from koa context into
NetworkManager
- logger middleware will fallback to
consolein render middleware
- Improve error experience in development when server rendering fails #850
@shopify/react-serverpackage