Skip to content

Releases: equinor/fusion-framework

@equinor/[email protected]

30 Oct 13:16
569a11b
Compare
Choose a tag to compare

Patch Changes

  • #2521 65f03fa Thanks @eikeland! - ### Adds CHANGELOG.md to app zip package

    • Removed individual file additions for package.json, LICENSE.md, and README.md.
    • Added a loop to handle multiple files (package.json, LICENSE.md, README.md, CHANGELOG.md) in a more concise manner.
    • Updated the spinner messages accordingly.

@equinor/[email protected]

17 Oct 07:48
ef9bc50
Compare
Choose a tag to compare

Patch Changes

  • #2517 e78861a Thanks @eikeland! - Make app.config.ts definition scopes optional by updating the AppConfigFn type to use z.input<typeof ApiAppConfigSchema>.

@equinor/[email protected]

15 Oct 11:00
c7fb888
Compare
Choose a tag to compare

Minor Changes

  • #2494 e11ad64 Thanks @odinr! - Adjusted module to the new app service API.

    [!WARNING]
    This will introduce breaking changes to the configuration of AppConfigurator.client.

    Added

    • Introduced AppClient class to handle application manifest and configuration queries.
    • Added zod to validate the application manifest.

    Changed

    • Updated AppModuleProvider to use AppClient for fetching application manifests and configurations.
    • Modified AppConfigurator to utilize AppClient for client configuration.
    • Updated useApps hook with new input parameter for filterByCurrentUser in fusion-framework-react.

    Migration

    before:

    configurator.setClient({
        getAppManifest: {
            client: {
                fn: ({ appKey }) => httpClient.json$<ApiApp>(`/apps/${appKey}`),
            },
            key: ({ appKey }) => appKey,
        },
        getAppManifests: {
            client: {
                fn: () => httpClient.json$<ApiApp[]>(`/apps`),
            },
            key: () => `all-apps`,
        },
        getAppConfig: {
            client: {
                fn: ({ appKey }) => httpClient.json$<ApiApp>(`/apps/${appKey}/config`),
            },
            key: ({ appKey }) => appKey,
        },
    });

    after:

    import { AppClient } from `@equinor/fusion-framework-module-app`;
    configurator.setClient(new AppClient());

    custom client implementation:

    import { AppClient } from `@equinor/fusion-framework-module-app`;
    class CustomAppClient implements IAppClient { ... }
    configurator.setClient(new CustomAppClient());

@equinor/[email protected]

15 Oct 11:00
c7fb888
Compare
Choose a tag to compare

Patch Changes

@equinor/[email protected]

15 Oct 11:00
c7fb888
Compare
Choose a tag to compare

Patch Changes

@equinor/[email protected]

15 Oct 11:00
c7fb888
Compare
Choose a tag to compare

Patch Changes

  • #2494 e11ad64 Thanks @odinr! - Updating fusion-wc-person to fix issues when using selectedPerson = null in PersonSelect component.

    Updated the following dependencies

    • @equinor/fusion-wc-person from ^3.0.1 to ^3.0.3 in packages/cli/package.json and packages/react/components/people-resolver/package.json.
  • Updated dependencies [e11ad64]:

@equinor/[email protected]

15 Oct 11:00
c7fb888
Compare
Choose a tag to compare

Patch Changes

  • #2494 e11ad64 Thanks @odinr! - Adjusted module to the new app service API.

    [!WARNING]
    This will introduce breaking changes to the configuration of AppConfigurator.client.

    Added

    • Introduced AppClient class to handle application manifest and configuration queries.
    • Added zod to validate the application manifest.

    Changed

    • Updated AppModuleProvider to use AppClient for fetching application manifests and configurations.
    • Modified AppConfigurator to utilize AppClient for client configuration.
    • Updated useApps hook with new input parameter for filterByCurrentUser in fusion-framework-react.

    Migration

    before:

    configurator.setClient({
        getAppManifest: {
            client: {
                fn: ({ appKey }) => httpClient.json$<ApiApp>(`/apps/${appKey}`),
            },
            key: ({ appKey }) => appKey,
        },
        getAppManifests: {
            client: {
                fn: () => httpClient.json$<ApiApp[]>(`/apps`),
            },
            key: () => `all-apps`,
        },
        getAppConfig: {
            client: {
                fn: ({ appKey }) => httpClient.json$<ApiApp>(`/apps/${appKey}/config`),
            },
            key: ({ appKey }) => appKey,
        },
    });

    after:

    import { AppClient } from `@equinor/fusion-framework-module-app`;
    configurator.setClient(new AppClient());

    custom client implementation:

    import { AppClient } from `@equinor/fusion-framework-module-app`;
    class CustomAppClient implements IAppClient { ... }
    configurator.setClient(new CustomAppClient());
  • Updated dependencies [e11ad64]:

@equinor/[email protected]

15 Oct 11:00
c7fb888
Compare
Choose a tag to compare

Patch Changes

  • #2494 e11ad64 Thanks @odinr! - Adjusted module to the new app service API.

    [!WARNING]
    This will introduce breaking changes to the configuration of AppConfigurator.client.

    Added

    • Introduced AppClient class to handle application manifest and configuration queries.
    • Added zod to validate the application manifest.

    Changed

    • Updated AppModuleProvider to use AppClient for fetching application manifests and configurations.
    • Modified AppConfigurator to utilize AppClient for client configuration.
    • Updated useApps hook with new input parameter for filterByCurrentUser in fusion-framework-react.

    Migration

    before:

    configurator.setClient({
        getAppManifest: {
            client: {
                fn: ({ appKey }) => httpClient.json$<ApiApp>(`/apps/${appKey}`),
            },
            key: ({ appKey }) => appKey,
        },
        getAppManifests: {
            client: {
                fn: () => httpClient.json$<ApiApp[]>(`/apps`),
            },
            key: () => `all-apps`,
        },
        getAppConfig: {
            client: {
                fn: ({ appKey }) => httpClient.json$<ApiApp>(`/apps/${appKey}/config`),
            },
            key: ({ appKey }) => appKey,
        },
    });

    after:

    import { AppClient } from `@equinor/fusion-framework-module-app`;
    configurator.setClient(new AppClient());

    custom client implementation:

    import { AppClient } from `@equinor/fusion-framework-module-app`;
    class CustomAppClient implements IAppClient { ... }
    configurator.setClient(new CustomAppClient());
  • Updated dependencies [e11ad64]:

@equinor/[email protected]

15 Oct 11:00
c7fb888
Compare
Choose a tag to compare

Major Changes

  • #2494 e11ad64 Thanks @odinr! - Adjusted module to the new app service API.

    [!WARNING]
    This will introduce breaking changes to the configuration of AppConfigurator.client.

    Added

    • Introduced AppClient class to handle application manifest and configuration queries.
    • Added zod to validate the application manifest.

    Changed

    • Updated AppModuleProvider to use AppClient for fetching application manifests and configurations.
    • Modified AppConfigurator to utilize AppClient for client configuration.
    • Updated useApps hook with new input parameter for filterByCurrentUser in fusion-framework-react.

    Migration

    before:

    configurator.setClient({
        getAppManifest: {
            client: {
                fn: ({ appKey }) => httpClient.json$<ApiApp>(`/apps/${appKey}`),
            },
            key: ({ appKey }) => appKey,
        },
        getAppManifests: {
            client: {
                fn: () => httpClient.json$<ApiApp[]>(`/apps`),
            },
            key: () => `all-apps`,
        },
        getAppConfig: {
            client: {
                fn: ({ appKey }) => httpClient.json$<ApiApp>(`/apps/${appKey}/config`),
            },
            key: ({ appKey }) => appKey,
        },
    });

    after:

    import { AppClient } from `@equinor/fusion-framework-module-app`;
    configurator.setClient(new AppClient());

    custom client implementation:

    import { AppClient } from `@equinor/fusion-framework-module-app`;
    class CustomAppClient implements IAppClient { ... }
    configurator.setClient(new CustomAppClient());

@equinor/[email protected]

15 Oct 11:01
c7fb888
Compare
Choose a tag to compare

Patch Changes

  • #2494 e11ad64 Thanks @odinr! - Adjusted module to the new app service API.

    [!WARNING]
    This will introduce breaking changes to the configuration of AppConfigurator.client.

    Added

    • Introduced AppClient class to handle application manifest and configuration queries.
    • Added zod to validate the application manifest.

    Changed

    • Updated AppModuleProvider to use AppClient for fetching application manifests and configurations.
    • Modified AppConfigurator to utilize AppClient for client configuration.
    • Updated useApps hook with new input parameter for filterByCurrentUser in fusion-framework-react.

    Migration

    before:

    configurator.setClient({
        getAppManifest: {
            client: {
                fn: ({ appKey }) => httpClient.json$<ApiApp>(`/apps/${appKey}`),
            },
            key: ({ appKey }) => appKey,
        },
        getAppManifests: {
            client: {
                fn: () => httpClient.json$<ApiApp[]>(`/apps`),
            },
            key: () => `all-apps`,
        },
        getAppConfig: {
            client: {
                fn: ({ appKey }) => httpClient.json$<ApiApp>(`/apps/${appKey}/config`),
            },
            key: ({ appKey }) => appKey,
        },
    });

    after:

    import { AppClient } from `@equinor/fusion-framework-module-app`;
    configurator.setClient(new AppClient());

    custom client implementation:

    import { AppClient } from `@equinor/fusion-framework-module-app`;
    class CustomAppClient implements IAppClient { ... }
    configurator.setClient(new CustomAppClient());
  • Updated dependencies [e11ad64]: