- Updated dependencies [
20cbe440a
]:- @shopify/[email protected]
-
#2659
c67ce27c1
Thanks @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-server
package to use the new API.
- Updated dependencies []:
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @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]
- Updated dependencies [
54f199856
,c6f5d2f3d
,40423a88d
]:- @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]
- @shopify/[email protected]
- @shopify/[email protected]
- Updated dependencies [
bd204450f
]:- @shopify/[email protected]
- Updated dependencies []:
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
-
#2574
0385b8f6e
Thanks @atesgoral! - Revert replacement of serialize-javascript with jsesc due to performance regression -
Updated dependencies [
0385b8f6e
]:- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- Updated dependencies [
79adf2fc8
]:- @shopify/[email protected]
- @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
]:- @shopify/[email protected]
-
#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.
- Updated dependencies [
eece629bd
]:- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- Updated dependencies [
248b45541
]:- @shopify/[email protected]
- Updated dependencies []:
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- Updated dependencies [
2094cb39a
]:- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- Updated dependencies []:
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @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]
- @shopify/[email protected]
- Updated dependencies []:
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- Updated dependencies [
30005950b
]:- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
- Updated dependencies [
44eb34763
]:- @shopify/[email protected]
- @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]
- 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-types
by 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-compose
to4.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-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.
- 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
- No updates. Transitive dependency bump.
- Include
setImmediate
in tests. #1948
- 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
- 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.quiltError
to exception caught after server error. (#1667)
- Added
renderRawErrorMessage
to the options forcreateRender
andcreateServer
, controls rendering of raw stack or custom error page for SSR errors. Defaults to old behaviour, which is raw stack for development only.
- Added
htmlProps
to the options forcreateRender
andcreateServer
, these props will be passed into the call to@shopify/react-html
's<Html>
component (#1661)
- Added
tslib@^1.14.1
in the list of dependencies. #1657
- Allow
proxy
option 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
localhost
to0.0.0.0
and remove 3000 as a default port. (#1585) -
Allow
proxy
andapp
options to be passed tocreateServer
. (#1591)
- Move default options from webpack plugin into react-server. (#1514)
- 🛑 Replace
isomorphic-fetch
withcross-fetch
as peer dependency. Consumer project should installcross-fetch
in their project or use@shopify/sewing-kit >= v0.131.0
(#1497)
-
Added
renderError
option to rendering a custom Error page on production SSR errors.- Note: If
renderError
is not set, the server returns a fallback error page as a sane default for production SSR errors.
- Note: If
-
[webpack-plugin] Utilizes an
error
component if it exists at the root ofapp/ui
. This component will be imported in the server source and passed to@shopify/react-server
'srenderError
option when creating a server. This will also create a virtual client entrypoint for theerror
component.
- Move
react-server-webpack-plugin
intoreact-server
and expose it from@shopify/react-server/webpack-plugin
(#1489)
- The
x-quilt-data
header is now serialized under the IDquilt-data
rather 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
CookieUniversalProvider
from@shopify/react-cookie
, andCSRFProvider
should not be necessary with the new strategies provided byquilt_rails
. -
Add: Serialize
x-quilt-data
received from the Rails server for use on the client (#1411)
- Allow
assetName
to take a function for apps which need to serve multiple sub-apps based on path [#1332]
- Added
assetName
option to allow thename
to be passed and default tomain
- Updated dependency:
@shopify/[email protected]
createRender
now includes automatic sewing-kit-koa set-up. ThecreateRender
middleware now accepts anassetPrefix
that is passed tosewingKitKoa
's middleware. [#1160]
- Added missing
@shopify/react-cookie
dependency
- Added universal cookies support using
@shopify/react-cookie
. #1002
-
Sets a
Server-Timing
response 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
HydrationContext
by default #969
- Now includes the full error stack as well as the error message when presenting SSR errors in development #901
- Added
Options
object as the second argument tocreateRender()
allowing passed in values forafterEachPass
andbetweenEachPass
#911
createRender
now passses the unchangedKoa.Context
object.
- actually passes in the headers from koa context into
NetworkManager
- logger middleware will fallback to
console
in render middleware
- Improve error experience in development when server rendering fails #850
@shopify/react-server
package