Skip to content

Releases: seek-oss/sku

sku@11.12.1

24 May 05:58
f7c4211
Compare
Choose a tag to compare

Patch Changes

  • Allow Webpack to interpret all .mjs files as modules, not just those from node_modules (#811)

    This fixes an error with compiled Vocab translation files because Webpack would not parse require.resolveWeak in .mjs files.

  • Bump Prettier to ensure parity with TypeScript and ESLint rules (#808)

  • Add warning banner about .less files (#802)

sku@11.12.0

17 May 06:53
3d0c589
Compare
Choose a tag to compare

Minor Changes

  • Add support for Storybook's preview.js file and re-export the DecoratorFn type from @storybook/react (#792)

    sku now supports global customization of story rendering via a .storybook/preview.(js|ts|tsx) file.

    EXAMPLE USAGE:

    import 'braid-design-system/reset';
    import apac from 'braid-design-system/themes/apac';
    import { BraidProvider } from 'braid-design-system';
    
    import React from 'react';
    import type { DecoratorFn } from 'sku/@storybook/react';
    
    // This will wrap every story in a BraidProvider
    export const decorators: DecoratorFn = [
      (Story) => (
        <BraidProvider theme={apac}>
          <Story />
        </BraidProvider>
      ),
    ];

    See the Storybook docs for more info.

sku@11.11.2

16 May 06:43
4822d87
Compare
Choose a tag to compare

Patch Changes

  • Don't run postinstall script if a project isn't using sku (#794)

sku@11.11.1

16 May 02:30
6aa663b
Compare
Choose a tag to compare

Patch Changes

  • Check only directories for Storybook stories (#797)

sku@11.11.0

04 May 05:20
0f56b57
Compare
Choose a tag to compare

Minor Changes

  • Start sku dev server middleware when running storybook (#787)

    When running sku storybook, if you have configured devServerMiddleware in your sku config, that middleware will now be passed through to storybook and injected into its own middleware stack.

sku@11.10.1

02 May 04:03
4967c43
Compare
Choose a tag to compare

Patch Changes

  • Lint all extensions supported by the ESLint config (#784)

sku@11.10.0

01 May 05:49
1740a63
Compare
Choose a tag to compare

Minor Changes

  • Update Vocab libraries (#781)

    The @vocab/types package has been absorbed into the @vocab/core package and the generated translation file will import types from the @vocab/core package instead.

    @vocab/webpack/loader has been updated to work with more file types (.js, .cjs, .mjs)

  • Update to eslint-config-seek v11.0.0. (#779)

    This version of the ESLint config adds additional rules enforcing consistent type imports/exports, as explained in this article.

    Any reported errors can be auto-fixed with sku format.

sku@11.9.2

19 Apr 01:31
8fbc3eb
Compare
Choose a tag to compare

Patch Changes

  • Fix a bug that could occur when running sku build or sku build-ssr that caused the copying of assets from the public folder to the target folder to fail (#776)

sku@11.9.1

18 Apr 05:34
c6ccc45
Compare
Choose a tag to compare

Patch Changes

  • Fix a bug where a function that didn't exist was being called (#774)

sku@11.9.0

18 Apr 04:34
8b6d285
Compare
Choose a tag to compare

Minor Changes

  • Re-export Meta and StoryObj types from @storybook/react (#773)

    The Meta and StoryObj types are now re-exported under sku/@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

  • Remove dependency on fs-extra (#770)

  • Update dependencies (#768)