Skip to content

Releases: gsoft-inc/wl-squide

@squide/webpack-configs@3.0.0

01 May 16:20
a0dd69f
Compare
Choose a tag to compare

Major Changes

  • #170 119570f Thanks @patricklafrance! - The host define function doesn't accept an "applicationName" anymore as it is now hardcoded to "host".

@squide/webpack-configs@2.0.0

01 May 01:02
c48448b
Compare
Choose a tag to compare

Major Changes

  • #168 89ace29 Thanks @patricklafrance! - This release Migrates Squide from Webpack Module Federation to Module Federation 2.0.

    This release deprecates the following packages:

    • @squide/webpack-module-federation, use @squide/module-federation instead.
    • @squide/firefly-configs, use @squide/firefly-webpack-configs instead.

    And introduce a few changes to existing API:

    • The FireflyRuntime nows accept a useMsw option and expose a new isMswEnabled getter:
    // bootstrap.tsx
    
    import { FireflyRuntime } from "@squide/firefly";
    
    const runtime = new FireflyRuntime({
      useMsw: true,
    });
    
    // Use the runtime to determine if MSW handlers should be registered.
    if (runtime.isMswEnabled) {
      // ...
    }
    • The registerRemoteModules function doesn't accept the remotes URL anymore. The remotes URL should be configured in the webpack configuration files.

    Previously:

    // bootstrap.tsx
    
    import {
      registerRemoteModules,
      type RemoteDefinition,
    } from "@squide/firefly";
    
    const Remotes: RemoteDefinition = [
      {
        name: "remote1",
        url: "http://localhost:8081",
      },
    ];
    
    await registerRemoteModules(Remotes, runtime);
    // webpack.dev.js
    
    import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
    import { swcConfig } from "./swc.dev.js";
    
    export default defineDevHostConfig(swcConfig, "host", 8080, {
      overlay: false,
    });

    Now:

    // bootstrap.tsx
    
    import {
      registerRemoteModules,
      type RemoteDefinition,
    } from "@squide/firefly";
    
    const Remotes: RemoteDefinition = [
      {
        name: "remote1",
      },
    ];
    
    await registerRemoteModules(Remotes, runtime);
    // webpack.dev.js
    
    import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
    import { swcConfig } from "./swc.dev.js";
    
    /**
     * @typedef {import("@squide/firefly-webpack-configs").RemoteDefinition}[]
     */
    export const Remotes = [
      {
        name: "remote1",
        url: "http://localhost:8081",
      },
    ];
    
    export default defineDevHostConfig(swcConfig, "host", 8080, Remotes, {
      overlay: false,
    });

    To migrate:

    1. Replace the @squide/webpack-module-federation dependency by @squide/module-federation.

    2. Replace the @squide/firefly-configs dependency by @squide/firefly-webpack-configs.

    3. Move the remotes URL from the bootstrap.tsx file to the webpack.*.js files.

    4. Integrate the new useMsw and isMswEnabled props.

@squide/react-router@5.0.0

01 May 01:02
c48448b
Compare
Choose a tag to compare

Major Changes

  • #168 89ace29 Thanks @patricklafrance! - This release Migrates Squide from Webpack Module Federation to Module Federation 2.0.

    This release deprecates the following packages:

    • @squide/webpack-module-federation, use @squide/module-federation instead.
    • @squide/firefly-configs, use @squide/firefly-webpack-configs instead.

    And introduce a few changes to existing API:

    • The FireflyRuntime nows accept a useMsw option and expose a new isMswEnabled getter:
    // bootstrap.tsx
    
    import { FireflyRuntime } from "@squide/firefly";
    
    const runtime = new FireflyRuntime({
      useMsw: true,
    });
    
    // Use the runtime to determine if MSW handlers should be registered.
    if (runtime.isMswEnabled) {
      // ...
    }
    • The registerRemoteModules function doesn't accept the remotes URL anymore. The remotes URL should be configured in the webpack configuration files.

    Previously:

    // bootstrap.tsx
    
    import {
      registerRemoteModules,
      type RemoteDefinition,
    } from "@squide/firefly";
    
    const Remotes: RemoteDefinition = [
      {
        name: "remote1",
        url: "http://localhost:8081",
      },
    ];
    
    await registerRemoteModules(Remotes, runtime);
    // webpack.dev.js
    
    import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
    import { swcConfig } from "./swc.dev.js";
    
    export default defineDevHostConfig(swcConfig, "host", 8080, {
      overlay: false,
    });

    Now:

    // bootstrap.tsx
    
    import {
      registerRemoteModules,
      type RemoteDefinition,
    } from "@squide/firefly";
    
    const Remotes: RemoteDefinition = [
      {
        name: "remote1",
      },
    ];
    
    await registerRemoteModules(Remotes, runtime);
    // webpack.dev.js
    
    import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
    import { swcConfig } from "./swc.dev.js";
    
    /**
     * @typedef {import("@squide/firefly-webpack-configs").RemoteDefinition}[]
     */
    export const Remotes = [
      {
        name: "remote1",
        url: "http://localhost:8081",
      },
    ];
    
    export default defineDevHostConfig(swcConfig, "host", 8080, Remotes, {
      overlay: false,
    });

    To migrate:

    1. Replace the @squide/webpack-module-federation dependency by @squide/module-federation.

    2. Replace the @squide/firefly-configs dependency by @squide/firefly-webpack-configs.

    3. Move the remotes URL from the bootstrap.tsx file to the webpack.*.js files.

    4. Integrate the new useMsw and isMswEnabled props.

Patch Changes

  • Updated dependencies [89ace29]:
    • @squide/core@4.0.0

@squide/msw@2.0.14

01 May 01:02
c48448b
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [89ace29]:
    • @squide/core@4.0.0

@squide/module-federation@5.0.0

01 May 01:02
c48448b
Compare
Choose a tag to compare

Major Changes

  • #168 89ace29 Thanks @patricklafrance! - This release Migrates Squide from Webpack Module Federation to Module Federation 2.0.

    This release deprecates the following packages:

    • @squide/webpack-module-federation, use @squide/module-federation instead.
    • @squide/firefly-configs, use @squide/firefly-webpack-configs instead.

    And introduce a few changes to existing API:

    • The FireflyRuntime nows accept a useMsw option and expose a new isMswEnabled getter:
    // bootstrap.tsx
    
    import { FireflyRuntime } from "@squide/firefly";
    
    const runtime = new FireflyRuntime({
      useMsw: true,
    });
    
    // Use the runtime to determine if MSW handlers should be registered.
    if (runtime.isMswEnabled) {
      // ...
    }
    • The registerRemoteModules function doesn't accept the remotes URL anymore. The remotes URL should be configured in the webpack configuration files.

    Previously:

    // bootstrap.tsx
    
    import {
      registerRemoteModules,
      type RemoteDefinition,
    } from "@squide/firefly";
    
    const Remotes: RemoteDefinition = [
      {
        name: "remote1",
        url: "http://localhost:8081",
      },
    ];
    
    await registerRemoteModules(Remotes, runtime);
    // webpack.dev.js
    
    import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
    import { swcConfig } from "./swc.dev.js";
    
    export default defineDevHostConfig(swcConfig, "host", 8080, {
      overlay: false,
    });

    Now:

    // bootstrap.tsx
    
    import {
      registerRemoteModules,
      type RemoteDefinition,
    } from "@squide/firefly";
    
    const Remotes: RemoteDefinition = [
      {
        name: "remote1",
      },
    ];
    
    await registerRemoteModules(Remotes, runtime);
    // webpack.dev.js
    
    import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
    import { swcConfig } from "./swc.dev.js";
    
    /**
     * @typedef {import("@squide/firefly-webpack-configs").RemoteDefinition}[]
     */
    export const Remotes = [
      {
        name: "remote1",
        url: "http://localhost:8081",
      },
    ];
    
    export default defineDevHostConfig(swcConfig, "host", 8080, Remotes, {
      overlay: false,
    });

    To migrate:

    1. Replace the @squide/webpack-module-federation dependency by @squide/module-federation.

    2. Replace the @squide/firefly-configs dependency by @squide/firefly-webpack-configs.

    3. Move the remotes URL from the bootstrap.tsx file to the webpack.*.js files.

    4. Integrate the new useMsw and isMswEnabled props.

Patch Changes

  • Updated dependencies [89ace29]:
    • @squide/core@4.0.0

@squide/i18next@1.1.5

01 May 01:02
c48448b
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [89ace29]:
    • @squide/core@4.0.0

@squide/firefly@8.0.0

01 May 01:02
c48448b
Compare
Choose a tag to compare

Major Changes

  • #168 89ace29 Thanks @patricklafrance! - This release Migrates Squide from Webpack Module Federation to Module Federation 2.0.

    This release deprecates the following packages:

    • @squide/webpack-module-federation, use @squide/module-federation instead.
    • @squide/firefly-configs, use @squide/firefly-webpack-configs instead.

    And introduce a few changes to existing API:

    • The FireflyRuntime nows accept a useMsw option and expose a new isMswEnabled getter:
    // bootstrap.tsx
    
    import { FireflyRuntime } from "@squide/firefly";
    
    const runtime = new FireflyRuntime({
      useMsw: true,
    });
    
    // Use the runtime to determine if MSW handlers should be registered.
    if (runtime.isMswEnabled) {
      // ...
    }
    • The registerRemoteModules function doesn't accept the remotes URL anymore. The remotes URL should be configured in the webpack configuration files.

    Previously:

    // bootstrap.tsx
    
    import {
      registerRemoteModules,
      type RemoteDefinition,
    } from "@squide/firefly";
    
    const Remotes: RemoteDefinition = [
      {
        name: "remote1",
        url: "http://localhost:8081",
      },
    ];
    
    await registerRemoteModules(Remotes, runtime);
    // webpack.dev.js
    
    import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
    import { swcConfig } from "./swc.dev.js";
    
    export default defineDevHostConfig(swcConfig, "host", 8080, {
      overlay: false,
    });

    Now:

    // bootstrap.tsx
    
    import {
      registerRemoteModules,
      type RemoteDefinition,
    } from "@squide/firefly";
    
    const Remotes: RemoteDefinition = [
      {
        name: "remote1",
      },
    ];
    
    await registerRemoteModules(Remotes, runtime);
    // webpack.dev.js
    
    import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
    import { swcConfig } from "./swc.dev.js";
    
    /**
     * @typedef {import("@squide/firefly-webpack-configs").RemoteDefinition}[]
     */
    export const Remotes = [
      {
        name: "remote1",
        url: "http://localhost:8081",
      },
    ];
    
    export default defineDevHostConfig(swcConfig, "host", 8080, Remotes, {
      overlay: false,
    });

    To migrate:

    1. Replace the @squide/webpack-module-federation dependency by @squide/module-federation.

    2. Replace the @squide/firefly-configs dependency by @squide/firefly-webpack-configs.

    3. Move the remotes URL from the bootstrap.tsx file to the webpack.*.js files.

    4. Integrate the new useMsw and isMswEnabled props.

Patch Changes

  • Updated dependencies [89ace29]:
    • @squide/module-federation@5.0.0
    • @squide/react-router@5.0.0
    • @squide/core@4.0.0
    • @squide/msw@2.0.14

@squide/firefly-webpack-configs@3.0.0

01 May 16:20
a0dd69f
Compare
Choose a tag to compare

Major Changes

  • #170 119570f Thanks @patricklafrance! - The host define function doesn't accept an "applicationName" anymore as it is now hardcoded to "host".

Patch Changes

  • Updated dependencies [119570f]:
    • @squide/webpack-configs@3.0.0

@squide/firefly-webpack-configs@2.0.0

01 May 01:02
c48448b
Compare
Choose a tag to compare

Major Changes

  • #168 89ace29 Thanks @patricklafrance! - This release Migrates Squide from Webpack Module Federation to Module Federation 2.0.

    This release deprecates the following packages:

    • @squide/webpack-module-federation, use @squide/module-federation instead.
    • @squide/firefly-configs, use @squide/firefly-webpack-configs instead.

    And introduce a few changes to existing API:

    • The FireflyRuntime nows accept a useMsw option and expose a new isMswEnabled getter:
    // bootstrap.tsx
    
    import { FireflyRuntime } from "@squide/firefly";
    
    const runtime = new FireflyRuntime({
      useMsw: true,
    });
    
    // Use the runtime to determine if MSW handlers should be registered.
    if (runtime.isMswEnabled) {
      // ...
    }
    • The registerRemoteModules function doesn't accept the remotes URL anymore. The remotes URL should be configured in the webpack configuration files.

    Previously:

    // bootstrap.tsx
    
    import {
      registerRemoteModules,
      type RemoteDefinition,
    } from "@squide/firefly";
    
    const Remotes: RemoteDefinition = [
      {
        name: "remote1",
        url: "http://localhost:8081",
      },
    ];
    
    await registerRemoteModules(Remotes, runtime);
    // webpack.dev.js
    
    import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
    import { swcConfig } from "./swc.dev.js";
    
    export default defineDevHostConfig(swcConfig, "host", 8080, {
      overlay: false,
    });

    Now:

    // bootstrap.tsx
    
    import {
      registerRemoteModules,
      type RemoteDefinition,
    } from "@squide/firefly";
    
    const Remotes: RemoteDefinition = [
      {
        name: "remote1",
      },
    ];
    
    await registerRemoteModules(Remotes, runtime);
    // webpack.dev.js
    
    import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
    import { swcConfig } from "./swc.dev.js";
    
    /**
     * @typedef {import("@squide/firefly-webpack-configs").RemoteDefinition}[]
     */
    export const Remotes = [
      {
        name: "remote1",
        url: "http://localhost:8081",
      },
    ];
    
    export default defineDevHostConfig(swcConfig, "host", 8080, Remotes, {
      overlay: false,
    });

    To migrate:

    1. Replace the @squide/webpack-module-federation dependency by @squide/module-federation.

    2. Replace the @squide/firefly-configs dependency by @squide/firefly-webpack-configs.

    3. Move the remotes URL from the bootstrap.tsx file to the webpack.*.js files.

    4. Integrate the new useMsw and isMswEnabled props.

Patch Changes

  • Updated dependencies [89ace29]:
    • @squide/webpack-configs@2.0.0

@squide/fakes@1.0.18

01 May 01:02
c48448b
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [89ace29]:
    • @squide/core@4.0.0