Releases: seek-oss/sku
[email protected]
Patch Changes
- Fixes a bug causing
sku test --watch
to not putjest
in watch mode (#1009)
[email protected]
Minor Changes
-
Export a
Server
type forsku
's server entrypoint (#981)EXAMPLE USAGE:
// server.tsx import { renderToString } from 'react-dom/server'; import type { Server } from 'sku'; import { App } from './App'; export default (): Server => ({ renderCallback: ({ SkuProvider, getHeadTags, getBodyTags }, _req, res) => { const app = renderToString( <SkuProvider> <App /> </SkuProvider>, ); res.send(/* html */ ` <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>My Awesome Project</title> <meta name="viewport" content="width=device-width, initial-scale=1"> ${getHeadTags()} </head> <body> <div id="app">${app}</div> ${getBodyTags()} </body> </html>`); }, });
[!NOTE]
TheServer
type may conflict with existing attempts in projects to define aServer
type.
[email protected]
Minor Changes
-
Update TypeScript from 5.3 to 5.5 (#1003)
Both the 5.4 and 5.5 releases include breaking changes. See the TypeScript 5.4 announcement and TypeScript 5.5 announcement for more information.
-
Add support for
--watch
flag tosku translations compile
(#989)The
sku translations compile
command now accepts a--watch
flag. When this flag is provided,translations.json
files will be re-compiled whenever changes are detected.EXAMPLE USAGE:
sku translations compile --watch
Patch Changes
-
Update all
@vocab/*
dependencies (#989) -
Fixes a bug where the project name was not being reported correctly when sending telemetry (#1001)
-
Enable
babel-loader
cache (#990)Sku's webpack configuration now configures
babel-loader
to emit a cache tonode_modules/.cache/babel-loader
. The primary use case for this cache is speeding up production builds. It can also speed up local development in situations where the webpack cache is invalidated. -
Minify build output with SWC
Minification of production build output is now performed by SWC. Previously this was performed by Terser. This should result in a noticeable reduction in build times for larger projects, as well as a slight decrease in bundle size.
[email protected]
Patch Changes
- Fix default compile package detection in PNPM repos (#975)
[email protected]
Patch Changes
- When cleaning the build output directory, only delete files within the directory, rather than the entire directory (#969)
[email protected]
Minor Changes
-
Add support for removing assertion functions named
invariant
and assertions from thetiny-invariant
library, a lightweight alternative toassert
(#966)EXAMPLE USAGE:
import React from 'react'; import invariant from 'tiny-invariant'; export const Rating = ({ rating }: { rating: number }) => { invariant(rating >= 0 && rating <= 5, 'Rating must be between 0 and 5'); return <div>...</div>; };
[email protected]
Patch Changes
-
Remove
rimraf
dependency in favour of Node.js'srm
(#961) -
Unpin and bump
@pmmmwh/react-refresh-webpack-plugin
(#959) -
Ensure all sku-generated gitignored files are present in
.prettierignore
and.eslintignore
too (#957)Consumers should notice a few new files being added to the sku-managed sections within
.prettierignore
and.eslintignore
the next time asku
command is run:# managed by sku *.less.d.ts +.eslintcache +.eslintrc +.prettierrc .storybook/main.js coverage/ dist-storybook/ dist/ report/ # end managed by sku
These changes should be committed to your repo.
-
Disable peer dependency validation for PNPM (#952)
The method we currently use to validate peer dependencies and warn users about duplicate package is not compatible with how PNPM organizes dependencies in
node_modules
. This feature has been disabled for PNPM repos until further notice. -
Replace
memoizee
dependency withnano-memoize
(#953) -
Replace
fast-glob
withfdir
andpicomatch
(#952) -
Replace
validate-npm-package-name
dependency with a regexp (#954) -
Improve performance of peer dependency validation (#952)
Peer dependency validation shoould now complete within a few seconds, rather than a few minutes.
[email protected]
Minor Changes
-
Update TypeScript to 5.3 (#938)
This release includes breaking changes. See the TypeScript 5.3 announcement for more information.
Patch Changes
[email protected]
Patch Changes
-
Update
webpack-dev-server
to v5 (#930) -
Stop passing
--quiet
flag to the Storybook CLI when runningsku storybook
(#929)This flag was added to suppress verbose CLI output, but as of Storybook CLI v7.1.0 this also hides the dev server info which includes the URL to access the Storybook UI.
The flag has now been removed to provide a better default experience when using the Storybook CLI.
Users can still pass--quiet
to suppress verbose output if desired:pnpm run sku storybook --quiet
[email protected]
Patch Changes
- Update dependencies (#917)