@comet/admin-babel-preset
Advanced tools
Weekly downloads
Changelog
4.0.0
Mar 8, 2023
comet-config.json
file that is used in all microservices.AppModule
instead of injecting it into the separate modules. Doing so removes a significant overhead caused by asynchronous module initialization.AnchorBlock
to support linking to anchors.anchors
method to BlockInterface
for a block to specify its anchorsChanges related to the new authorization strategy
AuthorizationErrorPage
componentaccess-token-service-worker.js
file. You should remove it from your build setupAccessToken
message from IFrameBridge
authorizationManager
option from createHttpClient
Change CmsBlockContext.damConfig.maxFileSize
from string
to number
Change CmsBlockContext.damConfig.maxSrcResolution
from string
to number
Rename Publisher
component to PublisherPage
Remove the wrapping Chip
from infoTag
method in DocumentInterface
. Applications should add the Chip
themselves:
export const Page: DocumentInterface<Pick<GQLPage, "content" | "seo">, GQLPageInput> = {
...
InfoTag: ({ page }: { page: PageTreePage & GQLPageTreeNodeAdditionalFieldsFragment }) => {
return <Chip size="small" label={page.userGroup} />;
},
};
Add anchors
method to DocumentInterface
for a document to specify its anchors
AnchorBlock
InternalLinkBlock
createTextLinkBlock
createTextLinkBlock
Changes related to the new authorization strategy
AuthModule
. The auth module should be created in the application using the factories provided by the package. See AuthModule for an exampleBasicAuthStrategy
. Use createStaticCredentialsBasicStrategy
insteadBearerTokenStrategy
. Use createAuthProxyJwtStrategy
insteadGlobalAuthGuard
. Use createCometAuthGuard
insteadChanges related to the new module configuration strategy
BlocksModule
, BlobStorageModule
, DamModule
and PublicUploadModule
are not initialized asynchronously anymore. See AppModule for an exampleBlocksTransformerMiddlewareFactory
now requires BLOCKS_MODULE_TRANSFORMER_DEPENDENCIES
to be injected. See AppModule for an example
Restrict access to builds based on ContentScopeModule
. Cron jobs and jobs need to be annotated with comet-dxp.com/content-scope
Move Kubernetes-specific parts of BuildsModule
into a new KubernetesModule
Remove the option to configure BuildsModule
. Configuration of the Helm release is now done in KubernetesModule
Make @kubernetes/client-node a peer dependency
Remove BuildObject
Change DamModule.damConfig.allowedImageSizes
from string[]
to number[]
Change DamModule.damConfig.allowedAspectRatios
from string[]
to number[]
Remove damPath
from PixelImageBlock
, SvgImageBlock
and DamVideoBlock
createCometAuthGuard
to create the global application guardcreateAuthResolver
for currentUser
query and currentUserSignOut
mutationcreateAuthProxyJwtStrategy
for a JWT-based auth strategycreateStaticCredentialsBasicStrategy
for a basic auth strategycreateStaticAuthedUserStrategy
for a static user-based strategy. It should be primarily used for local developmentPageTreeReadApiService
with preloadNodes
method to preload pages when reading large parts of the page treeBlocksTransformerService
that can be used in block field resolvers for improved performance (instead of relying on BlocksTransformerMiddlewareFactory). If all block transforms are done using field resolvers, BlocksTransformerMiddlewareFactory
and fieldResolverEnhancers
can be removed for additional performance improvementsAnchorBlock
InternalLinkBlock
Changes related to the new authorization strategy
access-token-service-worker.js
file. You should remove it from your build setupAccessToken
message from IFrameBridge
Remove the ceiling of width
and height
props in Image
component
AnchorBlock
InternalLinkBlock
getAuthedUser
and hasAuthedUser
to parse the current user from the requestChanges before 4.x are listed in our changelog for older versions.
FAQs
Unknown package
The npm package @comet/admin-babel-preset receives a total of 945 weekly downloads. As such, @comet/admin-babel-preset popularity was classified as not popular.
We found that @comet/admin-babel-preset demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.