Skip to content

v10.0.0

Compare
Choose a tag to compare
@contentful-automation contentful-automation released this 01 Nov 10:48
· 407 commits to master since this release
f389bf5

10.0.0 (2023-11-01)

Refactor

BREAKING CHANGES


  • Replace type definitions defined in types.d.ts with generated type defs with entrypoint dist/index.d.ts.
  • Changed addSequenceHeader and getEntityName from default exports to named exports (listed in the todos).

Other notable (and less breaking?) changes:

  • Added a whole bunch of extra object reference checks. I have extracted the more complex checks, to the ✨new./type-guards.ts file.

  • Replaced lodash.cloneDeep with the structuredClone global function.

  • Modified the return structure of the proxyObjectToString function from:

    type proxyObjectToStringReturnType = |
      { host: number; port: number; isHttps: boolean; } | 
      { host: number; port: number; isHttps: boolean; auth: { username: string; password: string }; };

    to:

    type proxyObjectToStringReturnType = { 
      host: number; 
      port: number; 
      isHttps: boolean; 
      auth?: { username: string; password: string }; };

    The changes are subtle, but it is important to call out the change in behaviour here.