Skip to content

2.0.0

Compare
Choose a tag to compare
@IvanKiral IvanKiral released this 17 Oct 10:56
· 28 commits to main since this release

Package Updates

  • Fixed package.json main and types parameters for better resolution without requiring tsconfig options.

Command Renaming [Breaking Change]

  • exportenvironment backup
  • importenvironment restore
  • cleanenvironment clean
  • sync-model exportsync snapshot
  • sync-model runsync run
  • sync-model diffsync diff
  • sync-content exportmigrate-content snapshot
  • sync-content runmigrate-content run

CLI Updates

Sync Commands [Breaking Change]

  • The sync run, sync snapshot, and sync diff commands now require a new mandatory --entities parameter, allowing you to specify which entities to sync.

New Entities

  • Added support for syncing additional entities such as collections, languages, asset folders, spaces, and workflows.

API Functions Renaming [Breaking Change]

  • diffEnvironments is now syncDiff.
  • DiffEnvironmentsParams is now syncDiffParams.

Sync Diff [Breaking Change]

  • The syncDiff function returns an HTML string instead of creating a file or printing patch operations to the console.

Sync Run

  • File Validation: Added Zod file validation when syncing from a folder.

Restore [Breaking Change]

  • Added the _element suffix to the generated external_id for content type and snippet elements.
  • Added the _group suffix to the generated external_id for content type content groups.

Migrate Content [Breaking Change]

Full Changelog: 1.6.1...2.0.0