Skip to main content

@acromedia/gesso-api-middleware

7.3.0

Minor Changes

  • 64bf0ec: feat: Migrate api-middleware package to native ESM

    Breaking Changes

    • Package now uses "type": "module" and is a native ESM package
    • Build system migrated from TypeScript compiler to tsup for better ESM/CJS dual package support
    • Import paths now use explicit .js extensions for ESM compatibility
    • TypeScript configuration updated to use NodeNext module resolution
    • esModuleInterop and allowSyntheticDefaultImports set to false for strict ESM compliance

    Package-Specific Changes

    Build Configuration

    • Added tsup.config.ts with dual ESM/CJS output strategy
    • ESM build: Unbundled for tree-shaking support
    • CJS build: Bundled with deprecation warnings via post-build script
    • Post-build script (script/post-build.js) adds runtime warnings to CJS files

    Package Exports

    • Added dual exports for both main entry point and example_provider
    • Each export provides both ESM (.js) and CJS (.cjs) formats with proper type definitions
    • Export structure:
      • .: Main entry (index.js/index.cjs)
      • ./example_provider: Example provider implementation

    Configuration Files

    • Renamed .prettierrc.js.prettierrc.cjs (required when package type is module)
    • Added **/*.spec.* to ESLint ignore patterns
    • Created cypress/tsconfig.json with ESNext module and NodeNext resolution

    Cypress Integration

    • Converted cypress.config.ts from CommonJS require() to ESM import
    • Updated cypress/plugins/index.js to use ESM export default syntax

    Import Updates

    • Updated src/example_provider.ts: Changed '.' to './index.js' for explicit ESM imports

    TypeScript Configuration

    • Standalone config (no longer extends @acromedia/config/tsconfig/react-library.json)
    • Target: ES2022
    • Module & ModuleResolution: NodeNext
    • Added declaration and declarationMap generation
    • Excluded test files from build output

    Dependency Updates

    • Updated @typescript-eslint/eslint-plugin and @typescript-eslint/parser to ^8.29.1
    • Updated eslint-config-prettier to ^9.0.0
    • Updated eslint-plugin-prettier to ^5.0.0
    • Updated prettier to ^3.3.0
    • Added tsup ^8.5.0 as build tool

7.2.0

Minor Changes

  • 236a6d0: upgrade all packages to React 19, upgrade CI/builds to Node 22
  • 41e4884: Bump next.js to v15

7.1.0

Minor Changes

  • aaad2a6: Upgrade to typescript v5 and nodenext

7.0.0

Major Changes

  • b4a97ff: Add missing major version bumps not included in January

6.0.1

Patch Changes

  • e8fa722: TS type fixes

6.0.0

Major Changes

  • 609c5e9: No breaking changes to these packages, scheduled major release

    Gesso V6 Update

    • 14 Hook definitions removed (ie useX)
    • 8 Types removed across packages
    • 1 Plugin made to be required (update)
    • 20 Data mapping changes (mostly related to subtotal, total, discount, and totalItems being moved to adjustments in Cart)
    • 1 Plugin type change (ComponentFactoryPluginV2)
    • 3 Interface properties removed from core
    • 1 Environment variable removed from cli
    • 1 Command removed from cli
    • 2 Config flags removed from create-script
    • 5 Templates updated in next/client
    • 1 Generator added in next/client
    • 1 Theme Token Removed in design-system
    • 11 Components With Removed Props in design-system

5.0.1

Patch Changes

  • 352ef12: Update dependencies and clean up dependency tree

5.0.0

Major Changes

  • bff9b4a: # Gesso V5 Update
    • 6 Functions Removed
    • 1 Theme Token Removed
    • 3 Components Removed
    • 12 Components With Removed Props
    • 2 Export Names Changed
    • 8 Type Changes

4.0.2

Patch Changes

  • 54f1216: Remove outdated license settings in package.json

4.0.1

Patch Changes

  • 03f2414: Fixed some cases where middleware would not correctly wait for a response or would return an incorrect type

4.0.0

Major Changes

  • 22b0bb4: bump to v4 to align with other packages - no breaking changes

2.0.0

Major Changes

  • f49ee1f: gesso v4 version bump

Bug Fixes

  • add missing scope (24c8457)
  • add missing test-app start (179c844)
  • change husky to use workspace commands instead of cd (b69986a)
  • correct dist cache location to account for workspace (e567a4b)
  • incorrect gitlab project id (4a45929)
  • limit tsc to src files so it ignores cypress cache (5c8d47b)
  • master -> main in gitlab-ci (278c4c4)
  • master -> main in release config (8d1e0ef)
  • try with 1.0.0 version (815b782)
  • try with 1.0.0 version (07b7f59)
  • wrong registry path in package.json (50b68bc)
  • yarn workspaces uses package name not folder name (4ace9ab)