UNPKG

@equinor/fusion-framework-react-module

Version:

Utils for initializing and consuming fusion framework modules

380 lines (213 loc) 17.4 kB
# Change Log ## 3.1.12 ### Patch Changes - Updated dependencies [[`96bb1fb`](https://github.com/equinor/fusion-framework/commit/96bb1fb744d8dc2410e99fea6ca948d2d5489428)]: - @equinor/fusion-framework-module@4.4.2 ## 3.1.11 ### Patch Changes - Updated dependencies [[`e49f916`](https://github.com/equinor/fusion-framework/commit/e49f9161557202df57248d02ade4d2ef50231bdc), [`c6af3a3`](https://github.com/equinor/fusion-framework/commit/c6af3a3c926fb245e9d056b506d47b8bf4f1efde)]: - @equinor/fusion-framework-module@4.4.1 ## 3.1.10 ### Patch Changes - Updated dependencies [[`efd70a3`](https://github.com/equinor/fusion-framework/commit/efd70a34f734e0c155d3440e35ce4fa11a7abc42)]: - @equinor/fusion-framework-module@4.4.0 ## 3.1.9 ### Patch Changes - Updated dependencies [[`f53b60b`](https://github.com/equinor/fusion-framework/commit/f53b60b7805706ce7617e614f0ac0c24317a2e43)]: - @equinor/fusion-framework-module@4.3.8 ## 3.1.8 ### Patch Changes - [#2885](https://github.com/equinor/fusion-framework/pull/2885) [`abb3560`](https://github.com/equinor/fusion-framework/commit/abb3560a22ad8830df19904272035458433f4237) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update he `Typescript` version `^5.7.3` to `^5.8.2` - Updated dependencies [[`abb3560`](https://github.com/equinor/fusion-framework/commit/abb3560a22ad8830df19904272035458433f4237)]: - @equinor/fusion-framework-module@4.3.7 ## 3.1.7 ### Patch Changes - [#2855](https://github.com/equinor/fusion-framework/pull/2855) [`811f1a0`](https://github.com/equinor/fusion-framework/commit/811f1a0139ff4d1b0c3fba1ec2b77cc84ba080d1) Thanks [@odinr](https://github.com/odinr)! - Conformed to Biome `linter.correctness.useExhaustiveDependencies` - [#2848](https://github.com/equinor/fusion-framework/pull/2848) [`dcd2fb1`](https://github.com/equinor/fusion-framework/commit/dcd2fb1394e175d0cc2a4289ed3ede8e0271d67d) Thanks [@odinr](https://github.com/odinr)! - Refactored imports to use `type` when importing types from a module, to conform with the `useImportType` rule in Biome. - Updated dependencies [[`ba5d12e`](https://github.com/equinor/fusion-framework/commit/ba5d12eba0a38db412353765e997d02c1fbb478d), [`dcd2fb1`](https://github.com/equinor/fusion-framework/commit/dcd2fb1394e175d0cc2a4289ed3ede8e0271d67d)]: - @equinor/fusion-framework-module@4.3.6 ## 3.1.6 ### Patch Changes - Updated dependencies [[`2644b3d`](https://github.com/equinor/fusion-framework/commit/2644b3d63939aede736a3b1950db32dbd487877d)]: - @equinor/fusion-framework-module@4.3.5 ## 3.1.5 ### Patch Changes - Updated dependencies [[`75d676d`](https://github.com/equinor/fusion-framework/commit/75d676d2c7919f30e036b5ae97c4d814c569aa87), [`00d5e9c`](https://github.com/equinor/fusion-framework/commit/00d5e9c632876742c3d2a74efea2f126a0a169d9)]: - @equinor/fusion-framework-module@4.3.4 ## 3.1.4 ### Patch Changes - Updated dependencies [[`a1524e9`](https://github.com/equinor/fusion-framework/commit/a1524e9c4d83778da3db42dbcf99908b776a0592)]: - @equinor/fusion-framework-module@4.3.3 ## 3.1.3 ### Patch Changes - [#2333](https://github.com/equinor/fusion-framework/pull/2333) [`86d55b8`](https://github.com/equinor/fusion-framework/commit/86d55b8d27a572f3f62170b1e72aceda54f955e1) Thanks [@odinr](https://github.com/odinr)! - Updated `TypeScript` to 5.5.3 - [#2320](https://github.com/equinor/fusion-framework/pull/2320) [`1dd85f3`](https://github.com/equinor/fusion-framework/commit/1dd85f3a408a73df556d1812a5f280945cc100ee) Thanks [@odinr](https://github.com/odinr)! - Removed the `removeComments` option from the `tsconfig.base.json` file. Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons: 1. Improved debugging: Preserved comments can help developers understand the code better during debugging sessions. 2. Documentation: JSDoc comments and other important code documentation will be retained in the compiled output. 3. Source map accuracy: Keeping comments can lead to more accurate source maps, which is crucial for debugging and error tracking. No action is required from consumers of the library. This change affects the build process and doesn't introduce any breaking changes or new features. Before: ```json { "compilerOptions": { "module": "ES2022", "target": "ES6", "incremental": true, "removeComments": true, "preserveConstEnums": true, "sourceMap": true, "moduleResolution": "node" } } ``` After: ```json { "compilerOptions": { "module": "ES2022", "target": "ES6", "incremental": true, "preserveConstEnums": true, "sourceMap": true, "moduleResolution": "node" } } ``` This change ensures that comments are preserved in the compiled output, potentially improving the development and debugging experience for users of the Fusion Framework. - Updated dependencies [[`2f74edc`](https://github.com/equinor/fusion-framework/commit/2f74edcd4a3ea2b87d69f0fd63492145c3c01663), [`86d55b8`](https://github.com/equinor/fusion-framework/commit/86d55b8d27a572f3f62170b1e72aceda54f955e1), [`1dd85f3`](https://github.com/equinor/fusion-framework/commit/1dd85f3a408a73df556d1812a5f280945cc100ee)]: - @equinor/fusion-framework-module@4.3.2 ## 3.1.2 ### Patch Changes - Updated dependencies [[`fb424be`](https://github.com/equinor/fusion-framework/commit/fb424be24ad9349d01daef91a01c464d7b1413d2), [`fb424be`](https://github.com/equinor/fusion-framework/commit/fb424be24ad9349d01daef91a01c464d7b1413d2), [`fb424be`](https://github.com/equinor/fusion-framework/commit/fb424be24ad9349d01daef91a01c464d7b1413d2)]: - @equinor/fusion-framework-module@4.3.1 ## 3.1.1 ### Patch Changes - [#1981](https://github.com/equinor/fusion-framework/pull/1981) [`3d068b5`](https://github.com/equinor/fusion-framework/commit/3d068b5a7b214b62fcae5546f08830ea90f872dc) Thanks [@eikeland](https://github.com/eikeland)! - Align package exports with node10+ documentation. ## 3.1.0 ### Minor Changes - [#1953](https://github.com/equinor/fusion-framework/pull/1953) [`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904) Thanks [@odinr](https://github.com/odinr)! - updated typescript to 5.4.2 ### Patch Changes - Updated dependencies [[`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904), [`f3ae28d`](https://github.com/equinor/fusion-framework/commit/f3ae28dc6d1d5043605e07e2cd2e83ae799cd904)]: - @equinor/fusion-framework-module@4.3.0 ## 3.0.8 ### Patch Changes - Updated dependencies [[`152cf73`](https://github.com/equinor/fusion-framework/commit/152cf73d39eb32ccbaddaa6941e315c437c4972d)]: - @equinor/fusion-framework-module@4.2.7 ## 3.0.7 ### Patch Changes - Updated dependencies [[`9c24e84`](https://github.com/equinor/fusion-framework/commit/9c24e847d041dea8384c77439e6b237f5bdb3125)]: - @equinor/fusion-framework-module@4.2.6 ## 3.0.6 ### Patch Changes - [`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc) Thanks [@odinr](https://github.com/odinr)! - force patch bump, realign missing snapshot - Updated dependencies [[`b5dfe5d2`](https://github.com/equinor/fusion-framework/commit/b5dfe5d29a249e0cca6c9589322931dfedd06acc)]: - @equinor/fusion-framework-module@4.2.5 ## 3.0.5 ### Patch Changes - Updated dependencies [[`9076a498`](https://github.com/equinor/fusion-framework/commit/9076a49876e7a414a27557b7fb9095a67fe3a57f)]: - @equinor/fusion-framework-module@4.2.4 ## 3.0.4 ### Patch Changes - [#1109](https://github.com/equinor/fusion-framework/pull/1109) [`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862) Thanks [@odinr](https://github.com/odinr)! - Change packaged manager from yarn to pnpm conflicts of `@types/react` made random outcomes when using `yarn` this change should not affect consumer of the packages, but might conflict dependent on local package manager. - [#1125](https://github.com/equinor/fusion-framework/pull/1125) [`2dccccd1`](https://github.com/equinor/fusion-framework/commit/2dccccd124fbe3cdde2132c29c27d3da9fc6f1f5) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump react and @types/react to react 18.2 only dev deps updated should not affect any consumers see [react changelog](https://github.com/facebook/react/releases) for details - Updated dependencies [[`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862), [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272)]: - @equinor/fusion-framework-module@4.2.3 ## 3.0.3 ### Patch Changes - [#905](https://github.com/equinor/fusion-framework/pull/905) [`a7858a1c`](https://github.com/equinor/fusion-framework/commit/a7858a1c01542e2dc94370709f122b4b99c3219c) Thanks [@odinr](https://github.com/odinr)! - **🚧 Chore: dedupe packages** - align all versions of typescript - update types to build - a couple of typecasts did not [satisfies](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#satisfies-support-in-jsdoc) and was recasted as `unknwon`, marked with `TODO`, should be fixed in future - Updated dependencies [[`3efbf0bb`](https://github.com/equinor/fusion-framework/commit/3efbf0bb93fc11aa158872cd6ab98a22bcfb59e5), [`7500ec2c`](https://github.com/equinor/fusion-framework/commit/7500ec2c9ca9b926a19539fc97c61c67f76fc8d9), [`76b30c1e`](https://github.com/equinor/fusion-framework/commit/76b30c1e86db3db18adbe759bb1e39885de1c898), [`83ee5abf`](https://github.com/equinor/fusion-framework/commit/83ee5abf7bcab193c85980e5ae44895cd7f6f08d), [`7500ec2c`](https://github.com/equinor/fusion-framework/commit/7500ec2c9ca9b926a19539fc97c61c67f76fc8d9), [`060818eb`](https://github.com/equinor/fusion-framework/commit/060818eb04ebb9ed6deaed1f0b4530201b1181cf), [`3efbf0bb`](https://github.com/equinor/fusion-framework/commit/3efbf0bb93fc11aa158872cd6ab98a22bcfb59e5), [`a7858a1c`](https://github.com/equinor/fusion-framework/commit/a7858a1c01542e2dc94370709f122b4b99c3219c)]: - @equinor/fusion-framework-module@4.2.0 All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## 3.0.2 (2023-05-23) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 3.0.1 (2023-05-05) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 3.0.0 (2023-04-16) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [2.0.2](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@2.0.1...@equinor/fusion-framework-react-module@2.0.2) (2023-03-20) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 2.0.1 (2023-01-30) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [2.0.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@1.1.2...@equinor/fusion-framework-react-module@2.0.0) (2023-01-27) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [2.0.0-alpha.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@1.1.2...@equinor/fusion-framework-react-module@2.0.0-alpha.0) (2023-01-26) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 1.1.2 (2023-01-26) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 1.1.1 (2022-12-01) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 1.1.0 (2022-11-17) ### Features - update typing of useModule hook ([958dd04](https://github.com/equinor/fusion-framework/commit/958dd0401667e9ebb1a51bced128ae43369cd6c4)) ## 1.0.15 (2022-11-11) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 1.0.14 (2022-11-03) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 1.0.13 (2022-11-02) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 1.0.12 (2022-10-27) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 1.0.11 (2022-10-21) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [1.0.10](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@1.0.9...@equinor/fusion-framework-react-module@1.0.10) (2022-10-17) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 1.0.9 (2022-10-03) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [1.0.8](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@1.0.7...@equinor/fusion-framework-react-module@1.0.8) (2022-09-29) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 1.0.7 (2022-09-27) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 1.0.6 (2022-09-20) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [1.0.5](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@1.0.4...@equinor/fusion-framework-react-module@1.0.5) (2022-09-14) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [1.0.4](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@1.0.3...@equinor/fusion-framework-react-module@1.0.4) (2022-09-13) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [1.0.3](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@1.0.2...@equinor/fusion-framework-react-module@1.0.3) (2022-09-13) ### Bug Fixes - update typings and linting ([7d2056b](https://github.com/equinor/fusion-framework/commit/7d2056b7866850b7efdfd4567385b5dbbcdf8761)) ## [1.0.2](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@1.0.1...@equinor/fusion-framework-react-module@1.0.2) (2022-09-13) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [1.0.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@1.0.1-next.1...@equinor/fusion-framework-react-module@1.0.1) (2022-09-12) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [1.0.1-next.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@1.0.1-next.0...@equinor/fusion-framework-react-module@1.0.1-next.1) (2022-09-12) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [1.0.1-next.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@1.0.0...@equinor/fusion-framework-react-module@1.0.1-next.0) (2022-09-12) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 1.0.0 (2022-09-12) ### ⚠ BREAKING CHANGES - **react-module:** config is now object ### Features - **react-module:** update configurator ([9105abd](https://github.com/equinor/fusion-framework/commit/9105abd8458a5f1ea04fa46cd1a4bb86596a2346)) ## [1.0.0-alpha.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@0.2.5...@equinor/fusion-framework-react-module@1.0.0-alpha.0) (2022-09-12) ### ⚠ BREAKING CHANGES - **react-module:** config is now object ### Features - **react-module:** update configurator ([9105abd](https://github.com/equinor/fusion-framework/commit/9105abd8458a5f1ea04fa46cd1a4bb86596a2346)) ## [0.2.5](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@0.2.4...@equinor/fusion-framework-react-module@0.2.5) (2022-09-05) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [0.2.4](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@0.2.3...@equinor/fusion-framework-react-module@0.2.4) (2022-09-05) ### Bug Fixes - **react-module:** fix typing of refs ([0df08fc](https://github.com/equinor/fusion-framework/commit/0df08fc00990a5c93b851f2c00175c7996f15845)) ## 0.2.3 (2022-09-05) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## 0.2.2 (2022-08-19) **Note:** Version bump only for package @equinor/fusion-framework-react-module ## [0.2.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-module@0.2.0...@equinor/fusion-framework-react-module@0.2.1) (2022-08-15) **Note:** Version bump only for package @equinor/fusion-framework-react-module # 0.2.0 (2022-08-11) - feat!: allow modules to displose ([32b69fb](https://github.com/equinor/fusion-framework/commit/32b69fb7cc61e78e503e67d0e77f21fb44b600b9)) ### BREAKING CHANGES - module.initialize now has object as arg # 0.1.0 (2022-08-05) ### Features - **react-module:** initial ([#192](https://github.com/equinor/fusion-framework/issues/192)) ([368614b](https://github.com/equinor/fusion-framework/commit/368614b2c7bd43fad21b17ba709a42cad6e84319))