Skip to content

Commit 7d23b5e

Browse files
committed
feat: new esm builds
1 parent 0f7ff42 commit 7d23b5e

9 files changed

Lines changed: 758 additions & 124 deletions

File tree

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
secrets: inherit
2626

2727
release:
28-
if: github.event_name == 'push' && contains(fromJSON('["refs/heads/master", "refs/heads/beta", "refs/heads/canary", "refs/heads/dev"]'), github.ref)
28+
if: github.event_name == 'push' && contains(fromJSON('["refs/heads/master", "refs/heads/beta", "refs/heads/canary", "refs/heads/dev", ""refs/heads/new-beta""]'), github.ref)
2929
needs: [build, check, test-demo-projects, test-integration]
3030
permissions:
3131
contents: write

lib/export-types.ts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export type {
2525
AppActionCall,
2626
AppActionCallProps,
2727
AppActionCallErrorProps,
28+
AppActionCallResponse, // was previously deep imported in user_interface
2829
AppActionCallRawResponseProps,
2930
AppActionCallStatus,
3031
CreateAppActionCallProps,
@@ -93,6 +94,7 @@ export type {
9394
export type {
9495
Comment,
9596
CommentProps,
97+
CommentStatus, // was previously deep imported in user_interface
9698
CreateCommentProps,
9799
DeleteCommentParams,
98100
GetCommentParentEntityParams,
@@ -125,7 +127,13 @@ export type {
125127
GroupControl,
126128
SidebarItem,
127129
} from './entities/editor-interface'
128-
export type { CreateEntryProps, Entry, EntryProps, WithResourceName } from './entities/entry'
130+
export type {
131+
CreateEntryProps,
132+
Entry,
133+
EntryProps,
134+
EntryReferenceProps, // was previously deep imported in user_interface
135+
WithResourceName,
136+
} from './entities/entry'
129137
export type { CreateEnvironmentProps, Environment, EnvironmentProps } from './entities/environment'
130138
export type {
131139
CreateEnvironmentAliasProps,
@@ -197,7 +205,13 @@ export type {
197205
ReleaseActionSysProps,
198206
ReleaseActionTypes,
199207
} from './entities/release-action'
200-
export type { CreateRoleProps, Role, RoleProps } from './entities/role'
208+
export type {
209+
ActionType, // was previously deep imported in user_interface
210+
ConstraintType, // was previously deep imported in user_interface
211+
CreateRoleProps,
212+
Role,
213+
RoleProps,
214+
} from './entities/role'
201215
export type {
202216
ScheduledAction,
203217
ScheduledActionProps,
@@ -235,8 +249,11 @@ export type {
235249
UpdateWebhookProps,
236250
UpsertWebhookSigningSecretPayload,
237251
WebHooks,
252+
WebhookCallDetailsProps, // was previously deep imported in user_interface
238253
WebhookCallRequest,
254+
WebhookCallOverviewProps, // was previously deep imported in user_interface
239255
WebhookFilter,
256+
WebhookHealthProps, // was previously deep imported in user_interface
240257
WebhookProps,
241258
WebhookSigningSecretProps,
242259
WebhookTransformation,
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export { editorInterfaceDefaults }
3030
export type PlainClientDefaultParams = DefaultParams
3131
export * from './export-types'
3232
export { ScheduledActionStatus }
33+
export { OptionalDefaults } from './plain/wrappers/wrap' // was previously deep imported in user_interface
3334

3435
interface UserAgentParams {
3536
/**
@@ -54,9 +55,11 @@ export type ClientOptions = UserAgentParams & XOR<RestAdapterParams, AdapterPara
5455
/**
5556
* Create a client instance
5657
* @param params - Client initialization parameters
58+
*
59+
* @deprecated The `createClient` function is deprecated and will be removed in future versions. Please use `createContentfulApi` or `createPlainClient` directly to create client instances.
5760
*
5861
* ```javascript
59-
* const client = contentfulManagement.createClient({
62+
* const client = contentfulManagement.createClient({np
6063
* accessToken: 'myAccessToken'
6164
* })
6265
* ```

lib/plain/wrappers/wrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type DefaultParams = {
1313
type UnionOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never
1414

1515
/**
16-
* @private
16+
* @private Not meant to be used directly by consumers and may change at any time
1717
*/
1818
export type OptionalDefaults<T> = UnionOmit<T, keyof DefaultParams> &
1919
Partial<Pick<T, Extract<keyof T, keyof DefaultParams>>>

0 commit comments

Comments
 (0)