Skip to main content

@acromedia/gesso-acumatica-middleware

7.4.0

Minor Changes

  • 64bf0ec: Migrated the Acumatica middleware package to ECMAScript Modules (ESM) with dual CJS/ESM support:
    • Package Configuration:
      • Added "type": "module" to package.json
      • Implemented modern exports field with dual CJS/ESM entry points
      • Replaced tsc build with tsup for optimized bundling
      • Added post-build script to inject CJS deprecation warnings
    • Testing Framework:
      • Migrated from Jest to Vitest for better ESM compatibility
      • Updated all test files to use Vitest APIs (vi.fn(), vi.mock(), etc.)
      • Added vitest.config.ts and vitest.setup.ts
    • TypeScript Configuration:
      • Updated tsconfig.json to use module: "NodeNext" and moduleResolution: "NodeNext"
      • Added tsconfig.dev.json for development and testing
      • Configured tsup.config.ts for dual ESM/CJS output
    • Source Code Updates:
      • Added .js extensions to all import statements (required for ESM)
      • Updated all 200+ SDK API files with proper ESM imports
      • Maintained backward compatibility through dual CJS/ESM exports
    • Configuration Updates:
      • Renamed .prettierrc.js to .prettierrc.cjs (required for ESM packages)
      • Updated .eslintrc.cjs to use tsconfig.dev.json and removed Jest plugin
      • Updated .prettierignore with proper exclusions
      • Removed jest.config.js
    • Additional Improvements:
      • Fixed missing error handling in Product.ts when product ID is not provided
      • Added proper switch statement break (code quality improvement)

Patch Changes

  • Updated dependencies [64bf0ec]
  • Updated dependencies [64bf0ec]
    • @acromedia/gesso-logger@7.2.0
    • @acromedia/gesso-api-middleware@7.3.0

7.3.0

Minor Changes

  • bda2c59: Add email as a param for fetching invoices

7.2.0

Minor Changes

  • 41e4884: Bump next.js to v15

Patch Changes

  • 31a0bde: Fix typechecks in plugin packages
  • Updated dependencies [236a6d0]
  • Updated dependencies [41e4884]
    • @acromedia/gesso-api-middleware@7.2.0

7.1.0

Minor Changes

  • 2f8dce7: add server-side logging library, gesso-logger, and implement it for gesso middleware packages
  • aaad2a6: Upgrade to typescript v5 and nodenext

Patch Changes

  • Updated dependencies [2f8dce7]
  • Updated dependencies [aaad2a6]
  • Updated dependencies [07a504c]
    • @acromedia/gesso-logger@7.1.0
    • @acromedia/gesso-api-middleware@7.1.0

7.0.0

Major Changes

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

Patch Changes

  • Updated dependencies [b4a97ff]
    • @acromedia/gesso-api-middleware@7.0.0

6.0.1

Patch Changes

  • e8fa722: TS type fixes
  • Updated dependencies [e8fa722]
    • @acromedia/gesso-api-middleware@6.0.1

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

Patch Changes

  • Updated dependencies [609c5e9]
    • @acromedia/gesso-api-middleware@6.0.0

2.1.0

Minor Changes

  • 478fe55: feat: add call to acumatica orders api so plugin can safely request data.
  • efd2922: Added the product plugin and middleware for Acumatica.

Patch Changes

  • 352ef12: Update dependencies and clean up dependency tree
  • Updated dependencies [352ef12]
    • @acromedia/gesso-api-middleware@5.0.1

2.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

Patch Changes

  • Updated dependencies [bff9b4a]
    • @acromedia/gesso-api-middleware@5.0.0

1.2.3

Patch Changes

  • 0fa3efa: Fix: Switch SalesInvoiceApi to InvoiceApi to fetch all invoices

1.2.2

Patch Changes

  • 2c36241: Customer methods added to Acumatica Middleware

1.2.1

Patch Changes

  • ce17a8a: Fix: await calls one at a time as calling apis at the same time causes automatic auth login to get confused
  • 1fad601: Fix: return last 6 months of invoices and reverse the results so that the invoices show in the right order
  • 54f1216: Remove outdated license settings in package.json
  • Updated dependencies [54f1216]
    • @acromedia/gesso-api-middleware@4.0.2

1.2.0

Minor Changes

  • 46b3fb0: Add: acumatica invoice plugin for erp provider allowing for invoice functionality

1.1.0

Minor Changes

  • 087a2671: feat: acumatica middleware functionality