Repository navigation
Move @cloudflare/config package to 1.0 RC - #16907
Merged
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release the 1.0 release candidate
This release finalises the binding and Worker field names, and includes breaking changes:
firstPartyWorkermoves from the Worker's top level toexperimental.firstPartyWorker.bindings.pipeline()takesstreamIdin place ofname. Set it to the ID of the Pipelines stream, not its name. Legacy pipelines aren't supported.bindings.k2()takesidin place ofstream. Set it to the ID of the K2 stream.bindings.analytics()is renamed tobindings.analyticsSql(). Its binding type changes from"analytics"to"analytics-sql". TheAnalyticsSQLBinding,AnalyticsSQLBindingOptionsandAnalyticsSQLBindingSchemaexports are renamed toAnalyticsSqlBinding,AnalyticsSqlBindingOptionsandAnalyticsSqlBindingSchema.KVBindingSchemaexport is renamed toKvBindingSchema.InputandOutputprefixes are replaced by the public type names andBuildOutput:InputConfigSchema→CloudflareConfigSchema,ParsedInputConfig→ParsedCloudflareConfigInputSettingsSchema→SettingsSchema,ParsedInputSettingsConfig→ParsedSettingsInputWorkerSchema→WorkerConfigSchema,ParsedInputWorkerConfig→ParsedWorkerConfigInputContainerSchema→ContainerConfigSchema,ParsedInputContainerConfig→ParsedContainerConfigOutputRootConfigSchema→BuildOutputRootConfigSchema,ParsedOutputRootConfig→ParsedBuildOutputRootConfigOutputWorkerSchema→BuildOutputWorkerConfigSchema,ParsedOutputWorkerConfig→ParsedBuildOutputWorkerConfigOutputContainerSchema→BuildOutputContainerConfigSchema,ParsedOutputContainerConfig→ParsedBuildOutputContainerConfigThe new
InputCloudflareConfigtype is whatCloudflareConfigSchemaaccepts, in the same way thatInputWorkerConfigis whatWorkerConfigSchemaaccepts.Setting the old
nameorstreamfield fails with an error that names the replacement field. Editors also show both fields as deprecated.The schema no longer fills in defaults. A parsed config without Containers leaves
containersundefined instead of setting it to[], and a Container withoutmaxInstancesleaves it undefined instead of setting it to20. Deploying still uses 20 instances whenmaxInstancesisn't set.Queue consumer
maxConcurrencyno longer acceptsnull. Wrangler already rejected it.A picture of a cute animal (not mandatory, but encouraged)