Skip to content

Releases: seek-oss/sku

[email protected]

02 Jul 23:20
5be6978
Compare
Choose a tag to compare

Patch Changes

  • Fixes a bug causing sku test --watch to not put jest in watch mode (#1009)

[email protected]

27 Jun 00:40
05891da
Compare
Choose a tag to compare

Minor Changes

  • Export a Server type for sku'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]
    The Server type may conflict with existing attempts in projects to define a Server type.

[email protected]

26 Jun 06:22
65df710
Compare
Choose a tag to compare

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 to sku 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 to node_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]

27 May 01:56
45a72c8
Compare
Choose a tag to compare

Patch Changes

  • Fix default compile package detection in PNPM repos (#975)

[email protected]

15 May 05:08
a51c77a
Compare
Choose a tag to compare

Patch Changes

  • When cleaning the build output directory, only delete files within the directory, rather than the entire directory (#969)

[email protected]

15 May 03:32
77e4572
Compare
Choose a tag to compare

Minor Changes

  • Add support for removing assertion functions named invariant and assertions from the tiny-invariant library, a lightweight alternative to assert (#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]

13 May 00:40
33b01c5
Compare
Choose a tag to compare

Patch Changes

  • Remove rimraf dependency in favour of Node.js's rm (#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 a sku 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 with nano-memoize (#953)

  • Replace fast-glob with fdir and picomatch (#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]

25 Mar 04:57
e5710f4
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • Remove empty-dir dependency (#935)

  • Replace command-line-args with minimist for parsing CLI arguments (#940)

  • Emit incremental TypeScript build info for faster subsequent type checking (#938)

[email protected]

05 Mar 04:12
53898a8
Compare
Choose a tag to compare

Patch Changes

  • Update webpack-dev-server to v5 (#930)

  • Stop passing --quiet flag to the Storybook CLI when running sku 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]

01 Feb 00:18
cffd49e
Compare
Choose a tag to compare

Patch Changes

  • Update dependencies (#917)