From 147a79edc7cd5b7c7c1bf8483d01bf7dc517635d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 3 Oct 2024 00:58:38 +0000 Subject: [PATCH] Version Packages --- .changeset/cuddly-cooks-grin.md | 7 ----- .changeset/nine-penguins-attend.md | 5 ---- .changeset/sharp-berries-report.md | 37 ------------------------ packages/sku/CHANGELOG.md | 45 ++++++++++++++++++++++++++++++ packages/sku/package.json | 2 +- 5 files changed, 46 insertions(+), 50 deletions(-) delete mode 100644 .changeset/cuddly-cooks-grin.md delete mode 100644 .changeset/nine-penguins-attend.md delete mode 100644 .changeset/sharp-berries-report.md diff --git a/.changeset/cuddly-cooks-grin.md b/.changeset/cuddly-cooks-grin.md deleted file mode 100644 index 6a3b94581..000000000 --- a/.changeset/cuddly-cooks-grin.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'sku': patch ---- - -Disable `babel-loader` cache compression - -`sku` applications tend to transpile many modules and upload all cache files as a single compressed file. This makes compressing each individual cache file superfluous, so this feature has been disabled. diff --git a/.changeset/nine-penguins-attend.md b/.changeset/nine-penguins-attend.md deleted file mode 100644 index f338365e3..000000000 --- a/.changeset/nine-penguins-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'sku': patch ---- - -Adds "Chrome" and "Edge" as fallback browser names for reusing existing tabs, improving compatibility with different Chromium browser versions which may use abbreviated browser names. diff --git a/.changeset/sharp-berries-report.md b/.changeset/sharp-berries-report.md deleted file mode 100644 index afe414014..000000000 --- a/.changeset/sharp-berries-report.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -'sku': minor ---- - -Add experimental `renderToStringAsync` parameter in `renderApp` - -The new `renderToStringAsync` method can be called instead of React DOM's `renderToString`. It is an asynchronous function, but once awaited should return the same result. - -This new function won't error when hitting suspended components during a static render, instead it'll wait for all suspended boundaries to resolve. - -**Note:** `react-dom` is now an optional peer dependency for use in this function. All known uses of static rendering use `react-dom` and shouldn't need to make a change. - -The function is being provided to enable teams to trial the behaviour, but is not encouraged for production use. - -```diff --import { renderToString } from 'react-dom/server'; - -const skuRender: Render = { -- renderApp: ({ SkuProvider, environment }) => { -+ renderApp: async ({ SkuProvider, environment, renderToStringAsync }) => { -- const appHtml = renderToString( -+ const appHtml = await renderToStringAsync( - - - , - ); - - return { - appHtml, - }; - }, - // ... -}; -``` - -This new feature is experimental, and is likely to change in implementation or may be removed completely. - diff --git a/packages/sku/CHANGELOG.md b/packages/sku/CHANGELOG.md index 6b6a1bc83..f1b087c35 100644 --- a/packages/sku/CHANGELOG.md +++ b/packages/sku/CHANGELOG.md @@ -1,5 +1,50 @@ # sku +## 13.2.0 + +### Minor Changes + +- Add experimental `renderToStringAsync` parameter in `renderApp` ([#1050](https://github.com/seek-oss/sku/pull/1050)) + + The new `renderToStringAsync` method can be called instead of React DOM's `renderToString`. It is an asynchronous function, but once awaited should return the same result. + + This new function won't error when hitting suspended components during a static render, instead it'll wait for all suspended boundaries to resolve. + + **Note:** `react-dom` is now an optional peer dependency for use in this function. All known uses of static rendering use `react-dom` and shouldn't need to make a change. + + The function is being provided to enable teams to trial the behaviour, but is not encouraged for production use. + + ```diff + -import { renderToString } from 'react-dom/server'; + + const skuRender: Render = { + - renderApp: ({ SkuProvider, environment }) => { + + renderApp: async ({ SkuProvider, environment, renderToStringAsync }) => { + - const appHtml = renderToString( + + const appHtml = await renderToStringAsync( + + + , + ); + + return { + appHtml, + }; + }, + // ... + }; + ``` + + This new feature is experimental, and is likely to change in implementation or may be removed completely. + +### Patch Changes + +- Disable `babel-loader` cache compression ([#1060](https://github.com/seek-oss/sku/pull/1060)) + + `sku` applications tend to transpile many modules and upload all cache files as a single compressed file. This makes compressing each individual cache file superfluous, so this feature has been disabled. + +- Adds "Chrome" and "Edge" as fallback browser names for reusing existing tabs, improving compatibility with different Chromium browser versions which may use abbreviated browser names. ([#1061](https://github.com/seek-oss/sku/pull/1061)) + ## 13.1.3 ### Patch Changes diff --git a/packages/sku/package.json b/packages/sku/package.json index 59331ec78..11b60b9ae 100644 --- a/packages/sku/package.json +++ b/packages/sku/package.json @@ -1,6 +1,6 @@ { "name": "sku", - "version": "13.1.3", + "version": "13.2.0", "description": "Front-end development toolkit, powered by Webpack, Babel, Vanilla Extract and Jest", "types": "./sku-types.d.ts", "bin": {