Skip to content

Latest commit

 

History

History
741 lines (480 loc) · 28.4 KB

File metadata and controls

741 lines (480 loc) · 28.4 KB

@equinor/fusion-framework-dev-server

2.0.17

Patch Changes

  • Updated dependencies [12071a3]
  • Updated dependencies [6a3080a]
    • @equinor/fusion-framework-vite-plugin-api-service@2.0.5
    • @equinor/fusion-framework-vite-plugin-spa@4.0.15

2.0.16

Patch Changes

  • Updated dependencies [3dcaae6]
    • @equinor/fusion-log@2.0.2

2.0.15

Patch Changes

  • 80c3e4a: Internal: add a clarifying intent comment to satisfy fusion-lint; no behavior changes.
  • Updated dependencies [80c3e4a]
  • Updated dependencies [80c3e4a]
  • Updated dependencies [80c3e4a]
  • Updated dependencies [80c3e4a]
    • @equinor/fusion-log@2.0.1
    • @equinor/fusion-framework-vite-plugin-api-service@2.0.4
    • @equinor/fusion-framework-vite-plugin-spa@4.0.14

2.0.14

Patch Changes

  • Updated dependencies [70268ab]
    • @equinor/fusion-framework-vite-plugin-api-service@2.0.3
    • @equinor/fusion-framework-vite-plugin-spa@4.0.13

2.0.13

Patch Changes

  • Updated dependencies [74beb1c]
    • @equinor/fusion-framework-vite-plugin-spa@4.0.12

2.0.12

Patch Changes

  • @equinor/fusion-framework-vite-plugin-spa@4.0.11

2.0.11

Patch Changes

  • @equinor/fusion-framework-vite-plugin-spa@4.0.10

2.0.10

Patch Changes

  • @equinor/fusion-framework-vite-plugin-spa@4.0.9

2.0.9

Patch Changes

  • @equinor/fusion-framework-vite-plugin-spa@4.0.8

2.0.8

Patch Changes

  • Updated dependencies [806c623]
    • @equinor/fusion-framework-vite-plugin-api-service@2.0.2

2.0.7

Patch Changes

  • Updated dependencies [5c05455]
    • @equinor/fusion-framework-vite-plugin-spa@4.0.7

2.0.6

Patch Changes

  • @equinor/fusion-framework-vite-plugin-spa@4.0.6

2.0.5

Patch Changes

  • @equinor/fusion-framework-vite-plugin-spa@4.0.5

2.0.4

Patch Changes

  • Updated dependencies [3005189]
    • @equinor/fusion-framework-vite-plugin-spa@4.0.4

2.0.3

Patch Changes

  • @equinor/fusion-framework-vite-plugin-spa@4.0.3

2.0.2

Patch Changes

  • Updated dependencies [4f71408]
  • Updated dependencies [ee9c669]
    • @equinor/fusion-framework-vite-plugin-api-service@2.0.1
    • @equinor/fusion-framework-vite-plugin-spa@4.0.2

2.0.1

Patch Changes

  • Updated dependencies [8f16c97]
    • @equinor/fusion-framework-vite-plugin-spa@4.0.1

2.0.0

Major Changes

  • abffa53: Major version bump for Fusion Framework React 19 release.

    All packages are bumped to the next major version as part of the React 19 upgrade. This release drops support for React versions below 18 and includes breaking changes across the framework.

    Breaking changes:

    • Peer dependencies now require React 18 or 19 (^18.0.0 || ^19.0.0)
    • React Router upgraded from v6 to v7
    • Navigation module refactored with new history API
    • renderComponent and renderApp now use createRoot API

    Migration:

    • Update your React version to 18.0.0 or higher before upgrading
    • Replace NavigationProvider.createRouter() with @equinor/fusion-framework-react-router
    • See individual package changelogs for package-specific migration steps

Patch Changes

  • aa35c46: chore: bump @vitejs/plugin-react from 5.1.4 to 6.0.1

  • 32bcf83: Bump vite from 7.3.1 to 8.0.0.

    Vite 8 replaces Rollup with Rolldown and esbuild with Oxc for faster builds. No breaking API changes affect this codebase. The dev-server peerDependency is widened to accept both Vite 7 and Vite 8.

  • Updated dependencies [abffa53]

  • Updated dependencies [32bcf83]

    • @equinor/fusion-framework-vite-plugin-api-service@2.0.0
    • @equinor/fusion-framework-vite-plugin-spa@4.0.0
    • @equinor/fusion-log@2.0.0

1.1.31

Patch Changes

  • #4157 6aa8e1f Thanks @Noggling! - Internal: patch release to align TypeScript types across packages for consistent type compatibility.

  • Updated dependencies [9d4d520, 6aa8e1f]:

    • @equinor/fusion-framework-vite-plugin-spa@3.1.11
    • @equinor/fusion-log@1.1.8
    • @equinor/fusion-framework-vite-plugin-api-service@1.2.5

1.1.30

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.1.10

1.1.29

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.1.9

1.1.28

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.1.8

1.1.27

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.1.7

1.1.26

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.1.6

1.1.25

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.1.5

1.1.24

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.1.4

1.1.23

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.1.3

1.1.22

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.1.2

1.1.21

Patch Changes

  • Updated dependencies [122752b]:
    • @equinor/fusion-framework-vite-plugin-spa@3.1.1

1.1.20

Patch Changes

  • Updated dependencies [d34ebd8]:
    • @equinor/fusion-framework-vite-plugin-spa@3.1.0

1.1.19

Patch Changes

  • Updated dependencies [15aaa87]:
    • @equinor/fusion-framework-vite-plugin-spa@3.0.7

1.1.18

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.0.6

1.1.17

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.0.5

1.1.16

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.0.4

1.1.15

Patch Changes

  • Updated dependencies [ee6aa77]:
    • @equinor/fusion-framework-vite-plugin-spa@3.0.3

1.1.14

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.0.2

1.1.13

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@3.0.1

1.1.12

Patch Changes

  • Updated dependencies [11fe961]:
    • @equinor/fusion-framework-vite-plugin-spa@3.0.0

1.1.11

Patch Changes

  • #3686 d6465bc Thanks @odinr! - Update vite peerDependency version constraint from ^6.0.7 to ^7.0.0 to support the latest vite features and improvements.

1.1.10

Patch Changes

  • #3637 f5b88e7 Thanks @dependabot! - Internal: bump rollup from 4.52.4 to 4.52.5 to fix sourcemap debugId generation; no public API changes.

  • Updated dependencies [f5b88e7, 1706e4c, 581306b]:

    • @equinor/fusion-framework-vite-plugin-api-service@1.2.4
    • @equinor/fusion-framework-vite-plugin-spa@2.0.2

1.1.9

Patch Changes

  • #3652 8d50adc Thanks @dependabot! - Security: Update Vite to v7.1.12

    This update addresses a security vulnerability in Vite's development server and includes bug fixes for improved compatibility. The update ensures secure development environments and better plugin ecosystem compatibility.

    Changes:

    • Updated Vite from v7.1.10 to v7.1.12
    • Includes security fix for development server file system checks
    • Includes compatibility fix for CommonJS plugin
    • No breaking changes or API modifications

    Security Fix (v7.1.11):

    • dev: trim trailing slash before server.fs.deny check (#20968)
      • Prevents potential path traversal vulnerability in development server
      • Only affects development environment, not production builds

    Bug Fix (v7.1.12):

    • deps: downgrade commonjs plugin to 28.0.6 to avoid rollup/plugins issues (#20990)
      • Improves compatibility with Rollup plugin ecosystem
      • Prevents potential build issues

    All packages using Vite as a development dependency are updated to the latest secure version. This is a patch-level security and bug fix update that maintains full compatibility with existing functionality.

    closes: https://github.com/equinor/fusion/issues/723

  • Updated dependencies [8d50adc]:

    • @equinor/fusion-framework-vite-plugin-api-service@1.2.3
    • @equinor/fusion-framework-vite-plugin-spa@2.0.1

1.1.8

Patch Changes

  • Updated dependencies [0dd31cd, 31e2581]:
    • @equinor/fusion-framework-vite-plugin-spa@2.0.0

1.1.7

Patch Changes

  • Updated dependencies [dd560e7]:
    • @equinor/fusion-framework-vite-plugin-spa@1.2.2

1.1.6

Patch Changes

  • Updated dependencies [b6a64d9]:
    • @equinor/fusion-framework-vite-plugin-spa@1.2.1

1.1.5

Patch Changes

  • Updated dependencies [99a3c26]:
    • @equinor/fusion-framework-vite-plugin-spa@1.2.0

1.1.4

Patch Changes

  • #3532 63ecde5 Thanks @dependabot! - Bump vite from 7.1.8 to 7.1.9 across development tools and plugins.

    This patch update fixes bugs and improves stability in the vite dependency.

  • Updated dependencies [45954e5, 63ecde5, d1098f7]:

    • @equinor/fusion-framework-vite-plugin-spa@1.1.4
    • @equinor/fusion-framework-vite-plugin-api-service@1.2.2

1.1.3

Patch Changes

  • 56c27ec Thanks @odinr! - Updated workspace dependencies to use exact version specifiers for consistent release behavior.

    • Changed workspace dependencies from workspace:^ to workspace:* across CLI, dev-server, and SPA vite plugin packages
    • Ensures exact version resolution within the monorepo for predictable builds and releases
    • Affects both dependencies and devDependencies where applicable
  • Updated dependencies [56c27ec]:

    • @equinor/fusion-framework-vite-plugin-spa@1.1.3

1.1.2

Patch Changes

  • #3432 528d72c Thanks @dependabot! - Updated vite from 7.1.5 to 7.1.7, including bug fixes for HMR, build system, and glob imports.

  • Updated dependencies [528d72c]:

    • @equinor/fusion-framework-vite-plugin-api-service@1.2.1
    • @equinor/fusion-framework-vite-plugin-spa@1.1.1

1.1.1

Patch Changes

  • #3443 2291483 Thanks @eikeland! - Fix OPTIONS requests missing Allow header after Vite 7 update

    • Disabled Vite's internal CORS handling by setting server.cors: false
    • This allows backend services to properly handle OPTIONS requests with correct headers
    • Resolves issue where OPTIONS requests were not forwarded to backend after Vite 7 upgrade
    • Backend services can now include Allow, Access-Control-Allow-Methods, and other CORS headers

    closes: #3436

1.1.0

Minor Changes

  • #3349 c511123 Thanks @dependabot! - chore: bump vite from 6.x to 7.1.5

    Major version update of Vite build tool across all packages. This update includes:

    • Enhanced build performance and caching
    • Better error reporting with code frames
    • Improved TypeScript integration
    • Updated plugin ecosystem compatibility
    • New development server features

    Links

Patch Changes

  • #3391 7792659 Thanks @dependabot! - chore: bump vitest from 2.0.1 to 3.2.4

    Major version update of Vitest testing framework for dev-server package.

    Breaking Changes

    • Updated from Vitest v2 to v3
    • Test runner behavior improvements

    New Features

    • Enhanced test performance
    • Better error handling and reporting
    • Updated Vite integration (v6.3.5)

    Links

  • Updated dependencies [c511123]:

    • @equinor/fusion-framework-vite-plugin-api-service@1.2.0
    • @equinor/fusion-framework-vite-plugin-spa@1.1.0

1.0.3

Patch Changes

  • #2910 07cc985 Thanks @dependabot! - Updated vitest from 2.1.9 to 3.2.4 across all packages.

    Breaking Changes

    • Node.js Requirements: Requires Node.js 18+ (already satisfied)
    • Vite Compatibility: Updated to work with Vite 7.x (already using Vite 7.1.5)
    • Snapshot Format: Snapshots now use backtick quotes (`) instead of single quotes
    • Coverage API: New coverage methods enableCoverage() and disableCoverage()
    • TypeScript Support: Enhanced TypeScript integration and type definitions

    Security Updates

    • CVE-2025-24963: Browser mode serves arbitrary files (fixed in 2.1.9)
    • CVE-2025-24964: Remote Code Execution vulnerability (fixed in 2.1.9)

    Migration Notes

    • Test snapshots may need regeneration due to quote format changes
    • Some test configurations might need updates for new TypeScript support
    • Peer dependency warnings for @vitest/coverage-v8 are expected and safe to ignore

    Links

  • Updated dependencies [bae9c95, 07cc985]:

    • @equinor/fusion-framework-vite-plugin-spa@1.0.1
    • @equinor/fusion-log@1.1.7
    • @equinor/fusion-framework-vite-plugin-api-service@1.1.1

1.0.2

Patch Changes

  • #3330 3590104 Thanks @odinr! - Enhanced dev server configuration by removing vite-tsconfig-paths plugin.

    The responsibility for adding the vite-tsconfig-paths plugin has been moved to @equinor/fusion-framework-cli, which now provides it via the overrides parameter in createDevServerConfig. This ensures consistent TypeScript path resolution in both development and build environments.

    • Removed vite-tsconfig-paths dependency from package.json
    • Removed plugin usage from create-dev-server-config.ts

    Breaking change:

    If you use @equinor/fusion-framework-dev-server outside of the CLI, you must manually add the vite-tsconfig-paths plugin to your Vite config overrides to maintain the same TypeScript path resolution behavior.

1.0.1

Patch Changes

  • #3327 22d6d3b Thanks @odinr! - Enhanced dev server configuration with improved React and TypeScript path resolution support.
    • Added @vitejs/plugin-react for better React development experience
    • Added vite-tsconfig-paths for improved TypeScript path resolution
    • Updated create-dev-server-config.ts to include both plugins in the vite configuration

1.0.0

Major Changes

  • #3075 8fffbfb Thanks @odinr! - Introduced a new package, @equinor/fusion-framework-dev-server, designed to provide a development server tailored for Fusion Framework applications. Built on top of Vite, it seamlessly integrates Vite and Fusion Framework configurations.

    For more details, visit the GitHub repository.

    Features

    • createDevServer Function: Simplifies the creation of a development server using a configuration object.
    • createDevServerConfig Function: Generates a Vite-compatible configuration for the development server.
    • SPA Support: Includes spa.templateEnv for defining environment variables specific to Single Page Applications.
    • API Service Discovery: Enables proxying and route mapping for API services via api.serviceDiscoveryUrl.
    • Dynamic Proxy Routes: Introduced the processServices function to remap Fusion services' URIs and dynamically generate proxy routes.
    • Logging: Integrated @equinor/fusion-log for customizable logging, with dedicated sub-loggers for SPA and API services.

    Dependencies

    The following dependencies were added to support the new package:

    • @equinor/fusion-framework-vite-plugin-api-service
    • @equinor/fusion-framework-vite-plugin-spa
    • @equinor/fusion-log

    Examples

    Using createDevServer

    import { createDevServer } from "@equinor/fusion-framework-dev-server";
    
    const devServer = await createDevServer({
      spa: {
        templateEnv: {
          portal: {
            id: "dev-portal",
          },
          title: "My Test Dev Server",
        },
      },
      api: {
        serviceDiscoveryUrl: "https://location.of.your.service.discovery",
        processServices: (data, route) => {
          return {
            data: data.concat({
              key: "mock-service",
              name: "Mock Service",
              uri: "/mock-api",
            }),
            routes: [],
          };
        },
      },
    });

Patch Changes

  • #3075 8fffbfb Thanks @odinr! - update Vite to 6.3.5

  • Updated dependencies [8fffbfb, 8fffbfb, 8fffbfb]:

    • @equinor/fusion-framework-vite-plugin-api-service@1.0.0
    • @equinor/fusion-framework-vite-plugin-spa@1.0.0
    • @equinor/fusion-log@1.1.5

1.0.0-next.10

Patch Changes

  • #3137 7c58c78 Thanks @odinr! - updates from main

  • #3075 db34d90 Thanks @odinr! - merge with main

  • Updated dependencies [7c58c78, db34d90]:

    • @equinor/fusion-framework-vite-plugin-api-service@1.0.0-next.2
    • @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.9
    • @equinor/fusion-log@1.1.5-next.0

1.0.0-next.9

Patch Changes

  • Updated dependencies [5973182]:
    • @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.8

1.0.0-next.8

Patch Changes

  • Updated dependencies [23fdc8a]:
    • @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.7

1.0.0-next.7

Patch Changes

  • Updated dependencies [713cb15]:
    • @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.6

1.0.0-next.6

Patch Changes

  • Updated dependencies [ea96493]:
    • @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.5

1.0.0-next.5

Patch Changes

  • Updated dependencies [8870e73]:
    • @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.4

1.0.0-next.4

Patch Changes

  • Updated dependencies []:
    • @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.3

1.0.0-next.3

Patch Changes

  • #3075 2ed792a Thanks @odinr! - removed options for server options for createDevServerConfig, use overrides instead on createDevServer

  • Updated dependencies [ca8d6c8, 7878f59]:

    • @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.2

1.0.0-next.2

Patch Changes

  • Updated dependencies [96ad5d3]:
    • @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.1
    • @equinor/fusion-framework-vite-plugin-api-service@1.0.0-next.1

1.0.0-next.1

Patch Changes

  • #3075 84c16d7 Thanks @odinr! - Add prepack script to dev-portal and dev-server packages
    • Added a prepack script to @equinor/fusion-framework-dev-portal and @equinor/fusion-framework-dev-server to ensure the build runs before packaging.
    • This helps guarantee that the latest build artifacts are included when publishing these packages.

1.0.0-next.0

Major Changes

  • #3074 6b034e5 Thanks @odinr! - Introduced a new package, @equinor/fusion-framework-dev-server, designed to provide a development server tailored for Fusion Framework applications. Built on top of Vite, it seamlessly integrates Vite and Fusion Framework configurations.

    Features

    • createDevServer Function: Simplifies the creation of a development server using a configuration object.
    • createDevServerConfig Function: Generates a Vite-compatible configuration for the development server.
    • SPA Support: Includes spa.templateEnv for defining environment variables specific to Single Page Applications.
    • API Service Discovery: Enables proxying and route mapping for API services via api.serviceDiscoveryUrl.
    • Dynamic Proxy Routes: Introduced the processServices function to remap Fusion services' URIs and dynamically generate proxy routes.
    • Logging: Integrated @equinor/fusion-log for customizable logging, with dedicated sub-loggers for SPA and API services.

    Dependencies

    The following dependencies were added to support the new package:

    • @equinor/fusion-framework-vite-plugin-api-service
    • @equinor/fusion-framework-vite-plugin-spa
    • @equinor/fusion-log

    Examples

    Using createDevServer

    import { createDevServer } from "@equinor/fusion-framework-dev-server";
    
    const devServer = await createDevServer({
      spa: {
        templateEnv: {
          portal: {
            id: "dev-portal",
          },
          title: "My Test Dev Server",
        },
      },
      api: {
        serviceDiscoveryUrl: "https://location.of.your.service.discovery",
        processServices: (data, route) => {
          return {
            data: data.concat({
              key: "mock-service",
              name: "Mock Service",
              uri: "/mock-api",
            }),
            routes: [],
          };
        },
      },
    });

    Using createDevServerConfig

    import { createDevServerConfig } from "@equinor/fusion-framework-dev-server";
    
    const config = createDevServerConfig({
      spa: {
        templateEnv: { API_URL: "https://api.example.com" },
      },
      api: {
        serviceDiscoveryUrl: "https://discovery.example.com",
        routes: ["/api"],
      },
    });

Patch Changes