Skip to content

Configuration Breaking Change

Compare
Choose a tag to compare
@Julien-R44 Julien-R44 released this 17 Apr 21:01
· 29 commits to main since this release

Breaking Changes

  • c0defa6: From this commit, if you are using --import=hot-hook/register for using hot-hook, the package.json's directory will be used for resolving glob patterns in the boundaries config.

    That means, if you had a package.json with the following content, and a root entrypoint in ./src/start.ts, glob patterns were resolved from ./src/start.ts file :

    {
      "name": "my-package",
      "version": "1.0.0",
      "hot-hook": {
        "boundaries": ["./controllers/**/*"]
      }
    }

    This configuration was matching all files in the ./src/controllers directory.

    To achieve the same result, you should now use the following configuration:

     {
       "name": "my-package",
       "version": "1.0.0",
       "hot-hook": {
         "boundaries": ["./src/controllers/**/*"]
       }
     }

Full Changelog: https://github.com/Julien-R44/hot-hook/compare/[email protected]@0.2.0