Blueprint

Change Log

0.16.0

Minor Changes

  • #2736 bf3f0c90 Thanks @jrolfs! - Add support for arrays in transform schemas

  • #2736 1ccaf5e0 Thanks @jrolfs! - Add a transform for updating all usages of typography components (Body, Heading, and Link) to use the respective size alias in place of the raw typography size preset (e.g: 300'small').

0.15.0

Minor Changes

  • #2534 aa00d3d6 Thanks @jrolfs! - Support using description/describe() in Zod to customize the prompt for a particular transform option

  • #2534 48e41801 Thanks @jrolfs! - Add support for specifying that a transform to always run with --dry by exporting export const dry = true

  • #2534 93a65dfb Thanks @jrolfs! - Add transform for extracting type token usage

  • #2534 af76183c Thanks @jrolfs! - Pass root files directory to all transforms as options.__path

    Example


    npx @hover/transforms ./src/components


    const transformer: Transform<Options> = (
    file,
    { jscodeshift: j },
    options,
    ) => {
    const root = j(file.source);
    // ./src/components
    console.log(options.__path);
    };
    export default transform;

  • #2534 4ce6052d Thanks @jrolfs! - Add support for prompting for unions of string literals in transform schemas with a select and for requiring fields conditionally based on the value of a boolean field via requiredWhen helper.

  • #2534 3d15ebaf Thanks @jrolfs! - Support using built-in jscodeshift report() function to log output from transforms (in addition to `log` prefix that was added earlier)

Patch Changes

  • #2534 d31bddaf Thanks @jrolfs! - Fix error output when used with transform logging and likely some other issues with result reporting related to how jscodeshift results are parsed

  • #2534 8ca1805d Thanks @jrolfs! - Throw an error when encountering an invalid schema exported from a transform

  • #2534 46337136 Thanks @jrolfs! - Upgrade jscodeshift to 0.15

  • Updated dependencies [22047c1e]:

    • @hover/utilities@0.19.1

0.14.6

Patch Changes

  • Updated dependencies [37aafd59]:
    • @hover/utilities@0.19.0

0.14.5

Patch Changes

0.14.4

Patch Changes

0.14.3

Patch Changes

0.14.2

Patch Changes

  • Updated dependencies [e3fc88bc]:
    • @hover/utilities@0.16.0

0.14.1

Patch Changes

0.14.0

Minor Changes

0.13.0

Minor Changes

  • b885b69c Thanks @jrolfs! - Add support for RegExp values for the source option of the rename props transform to make it easier to target components that compose system components

0.12.0

Minor Changes

  • fa2da733 Thanks @jrolfs! - Support passing a template to find setters transforms and add presets with a basic template, and a GitHub template for web-react links

Patch Changes

  • 5fcf768e Thanks @jrolfs! - Fix interactive prompting to support unions in transform schemas

  • f81fabae Thanks @jrolfs! - Fix transform option issue that occurred when some options were correctly passed via arguments and the rest are entered via interactive prompts. Only the prompted options were being passed to the transform, now the combination of arguments and options are correctly passed to the transform.

  • fa2da733 Thanks @jrolfs! - Fix find setters transform to find multiple settings per file instead of just one

  • Updated dependencies [e74fcd2d]:

    • @hover/utilities@0.14.0

0.11.0

Minor Changes

  • 911f06ef Thanks @jrolfs! - Add transform for finding all React useState setting invocations

  • 9bb5ee8e Thanks @jrolfs! - Add basic support for logging information without using jscodeshift's stat function (for now it's just a simple prefix of __log__)

0.10.2

Patch Changes

0.10.1

Patch Changes

  • 17667e59 Thanks @jrolfs! - Enable transpileOnly flag on ts-node when consuming transforms. We're primarily using ts-node to support consuming transforms written in TypeScript, so I don't think it actually makes sense to do any type-checking at runtime.

0.10.0

Minor Changes

  • #2065 1cd0ab99 Thanks @jrolfs! - Add alias option to Rename Imports transform to support renaming imports without relying on an import alias

  • #2065 1cd0ab99 Thanks @jrolfs! - Add updateSource option to Rename Imports transform to support simple import source updates, for example:


    // ⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣
    import { AwesomeIcon } from '../../AwesomeIcon';


    npx @hover/transforms -t rename-imports --from=AwesomeIcon --to=Icon --source=/.*AwesomeIcon/ --updateSource


    // ⇣⇣⇣⇣
    import { Icon } from '../../Icon';

  • #2065 1cd0ab99 Thanks @jrolfs! - Add Rename Import presets for swapping AwesomeIcon with Icon

Patch Changes

  • #2065 565ab3ec Thanks @jrolfs! - Fix an issue where camel-cased options weren't being passed to the transform correctly

0.9.1

Patch Changes

  • #2047 300eb9f2 Thanks @jrolfs! - Fix hRulerTrianglehTriangleRuler typo in icon migration transform and add in a type to prevent that from happening again

  • #2047 ecc0a17c Thanks @jrolfs! - Add a few icon mappings manually

0.9.0

Minor Changes

Patch Changes

  • Updated dependencies [9924631c]:
    • @hover/utilities@0.12.0

0.8.2

Patch Changes

0.8.1

Patch Changes

  • #1926 fb52d896 Thanks @jrolfs! - Remove Prettier formatting functionality as it seems to be causing a significant performance decline and weird, incorrect behavior even in transforms that didn't leverage Prettier formatting. Ultimately, I don't think @hover/transforms should actually concern itself with Prettier formatting as it adds some complexity (configuration resolution, etc.) and is probably better just left as an end user concern and can simply be run separately after running a transform.

0.8.0

Minor Changes

Patch Changes

0.7.3

Patch Changes

  • #1895 a9a97052 Thanks @jrolfs! - Add jscodeshift version and raw command invocation information to --debug output

0.7.2

Patch Changes

0.7.1

Patch Changes

0.7.0

Minor Changes

  • #1853 a61331d8 Thanks @jrolfs! - Add transform for migrating from Font Awesome icons to @hover/icons

0.6.0

Minor Changes

  • #1838 e4cd9e64 Thanks @jrolfs! - Add 'Rename Import' transform, which currently includes the following 1.0 preset:
    • useChakraThemeuseTheme
    • chakraThemetheme

0.5.1

Patch Changes

  • Updated dependencies [686feed1]:
    • @hover/utilities@0.10.0

0.5.0

Minor Changes

  • a29a75e0 Thanks @jrolfs! - Add --debug flag that prints all jscodeshift output

0.4.3

Patch Changes

  • 3ddc1a26 Thanks @jrolfs! - Fix path resolution for transforms tsconfig.json 🥵

0.4.2

Patch Changes

  • fcbf745c Thanks @jrolfs! - Include @types/jscodeshift in dependencies as it's required when consuming TypeScript-based transforms via ts-node

  • 88e298a5 Thanks @jrolfs! - Yet another attempt to fix the TypeScript configuration in the published package... it seems ts-node needs a project?

0.4.1

Patch Changes

  • #1753 892c1aad Thanks @jrolfs! - Fix missing base TypeScript configuration by inlining the configuration for now

0.4.0

Minor Changes

  • #1733 b92b9d44 Thanks @jrolfs! - Add /schema entrypoint exposing Zod schema helpers for boolean, string, number and regex that all attempt to deserialize values from strings

  • #1733 1549e156 Thanks @jrolfs! - Add transform for extracting Font Awesome icon usage

  • #1733 adb683d1 Thanks @jrolfs! - Add support for outputing results of stats() calls in transforms

Patch Changes

0.3.0

Minor Changes

  • #1735 574656cd Thanks @jrolfs! - Update presets for 'Rename Props' transform to include all prop renames for the 1.0 upgrade

Patch Changes

0.2.0

Minor Changes

  • #1732 6d923588 Thanks @jrolfs! - Add spinner with intermediate status feedback during transformation

Patch Changes

  • #1732 9040cfa3 Thanks @jrolfs! - Ensure 'Rename Prop' transform gracefully handles files that don't import the component to apply renames too and files that don't import from the specified import source at all

  • #1732 70ed8718 Thanks @jrolfs! - Oops, don't pass --dry to jscodeshift unless it's specified

0.1.1

Patch Changes

  • Updated dependencies [95ae6d8f]:
    • @hover/utilities@0.9.0

Copyright © 2024 Hover Inc. All Rights Reserved.