Releases: seek-oss/sku
sku@11.9.0
Minor Changes
-
Re-export
Meta
andStoryObj
types from@storybook/react
(#773)The
Meta
andStoryObj
types are now re-exported undersku/@storybook/react
.These types are useful for typing CSF 3 stories which are the new recommended way of writing stories.
EXAMPLE USAGE:
import type { Meta } from 'sku/@storybook/react'; import { MyComponent } from './MyComponent'; const meta: Meta<typeof MyComponent> = { title: 'Path/To/MyComponent', component: MyComponent, }; export default meta; type Story = StoryObj<typeof MyComponent>; export const Basic: Story = {}; export const WithProp: Story = { render: () => <MyComponent prop="value" />, };
Patch Changes
sku@11.8.2
Patch Changes
-
start-ssr: Enable
devServerMiddleware
to serve static assets (#765)Apply
devServerMiddleware
before sku static asset middleware, to support consumers serving custom static assets.
sku@11.8.1
Patch Changes
- Re-add
@types/jest
as a dependency (#757)
sku@11.8.0
Minor Changes
-
Add
libraryFile
configuration option (#755)This option allows the file name of the library to be specified in the sku configuration.
If this option is not specified then thelibraryName
option will be used for this purpose instead (note that this is the previously existing behaviour).EXAMPLE USAGE:
// sku.config.ts import type { SkuConfig } from 'sku'; const skuConfig: SkuConfig = { libraryEntry: 'src/library.js', renderEntry: 'src/render.js', libraryName: 'MyAwesomeLibrary', libraryFile: 'my-awesome-library', }; export default skuConfig;
v11.7.2
v11.7.1
v11.7.0
Minor Changes
-
Add
package.json
configuration flags that enable you to skip sku configuration and peer dep validation (#727)NOTE: These settings disable critical functionality of sku, so you likely
don't want to use them unless you know what you're doingskuSkipConfigure
: Skip generation of config files. E.g. .prettierrc, tsconfig.json, etc.skuSkipValidatePeerDeps
: Skip checking for multiple copies of the same package. You likely want to try and fix the warnings found by this check rather than disabling it.
EXAMPLE USAGE:
// package.json { "skuSkipConfigure": true, "skuSkipValidatePeerDeps": true }
v11.6.2
v11.6.1
v11.6.0
It is highly encouraged that you run npx yarn-deduplicate
after updating to sku 11.6.0 in order to hopefully prevent duplicate packages being in your lock file.
Minor Changes
-
Update to eslint-config-seek v10 (#709)
This update involves a few major version jumps, so be sure to read the following release notes for all the breaking changes:
You should be able to automatically fix most lint warnings/errors by running
yarn sku format
. -
Upgrade from jest v27 to v29 (#709)
Please take a look at the following upgrade guides as there may be breaking changes that affect your tests:
Likely the most significant change is the new default snapshot format:
- Expected: \\"a\\" + Expected: "a" - Object { - Array [] - } + { + [] + }
This may require you to update your snapshots.
-
Drop support for Node v12 (#709)
Sku now only supports Node v14.15 and above.
Although sku itself does not depend on any Node v14 APIs, Node v12 is no longer officially supported, and many of sku's dependencies no longer support it either.
Please ensure you are using a supported version of Node both locally (e.g. via a.nvmrc
file) and in CI (check your Docker images). -
Update typescript dependency (#709)
Sku now has a
typescript
dependency of^4.5.0
.
Previously the version was restricted due to a type issue withbraid-design-system
andtypescript@4.5.0
.
Please take a look at the release notes for recent typescript versions as there may be breaking changes that need to be addressed.