Releases: contentful/contentful-batch-libs
Releases · contentful/contentful-batch-libs
v10.1.1
v10.1.0
v10.0.0
10.0.0 (2023-11-01)
Refactor
BREAKING CHANGES
- Replace type definitions defined in
types.d.ts
with generated type defs with entrypointdist/index.d.ts
. - Changed
addSequenceHeader
andgetEntityName
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.