Vigia

Atualizar @growthbook/growthbook de 1.x para 2.x

Comparação da API pública de @growthbook/growthbook 1.8.0 e 2.0.0, calculada automaticamente a partir dos tipos TypeScript. Uma assinatura alterada é uma possível mudança incompatível, não uma certeza.

Resumo

Caminhos de importação removidos0
Exports removidos0
Assinaturas alteradas8
Membros de classes ou interfaces removidos0
Membros de classes ou interfaces alterados1
Novas descontinuações0
Mudanças de requisitos (engines, dependências peer)0
Novos exports26

Exports removidos

Nenhuma detectada.

Assinaturas alteradas

exportAntesDepois
@growthbook/growthbook · Context{ enabled?: boolean | undefined; attributes?: Attributes | undefined; url?: string | undefined; features?: Record<string, FeatureDefinition<any>> | undefined; experiments?: AutoExperiment<AutoExperimentVariation>[] | undefined; forcedVariations?: Record<string, number> | undefined; forcedFeatureValues?: Map<string, any> | undefined; attributeOverrides?: Attributes | undefined; blockedChangeIds?: string[] | undefined; disableVisualExperiments?: boolean | undefined; disableJsInjection?: boolean | undefined; jsInjectionNonce?: string | undefined; disableUrlRedirectExperiments?: boolean | undefine…{ enabled?: boolean | undefined; attributes?: Attributes | undefined; remoteGroupIds?: string[] | undefined; url?: string | undefined; features?: Record<string, FeatureDefinition<any>> | undefined; experiments?: AutoExperiment<AutoExperimentVariation>[] | undefined; forcedVariations?: Record<string, number> | undefined; forcedFeatureValues?: Map<string, any> | undefined; attributeOverrides?: Attributes | undefined; blockedChangeIds?: string[] | undefined; disableVisualExperiments?: boolean | undefined; disableJsInjection?: boolean | undefined; jsInjectionNonce?: string | undefined; disableUrlR…
@growthbook/growthbook · Options{ enabled?: boolean | undefined; attributes?: Attributes | undefined; url?: string | undefined; features?: Record<string, FeatureDefinition<any>> | undefined; experiments?: AutoExperiment<AutoExperimentVariation>[] | undefined; forcedVariations?: Record<string, number> | undefined; forcedFeatureValues?: Map<string, any> | undefined; attributeOverrides?: Attributes | undefined; blockedChangeIds?: string[] | undefined; disableVisualExperiments?: boolean | undefined; disableJsInjection?: boolean | undefined; jsInjectionNonce?: string | undefined; disableUrlRedirectExperiments?: boolean | undefine…{ enabled?: boolean | undefined; attributes?: Attributes | undefined; remoteGroupIds?: string[] | undefined; url?: string | undefined; features?: Record<string, FeatureDefinition<any>> | undefined; experiments?: AutoExperiment<AutoExperimentVariation>[] | undefined; forcedVariations?: Record<string, number> | undefined; forcedFeatureValues?: Map<string, any> | undefined; attributeOverrides?: Attributes | undefined; blockedChangeIds?: string[] | undefined; disableVisualExperiments?: boolean | undefined; disableJsInjection?: boolean | undefined; jsInjectionNonce?: string | undefined; disableUrlR…
@growthbook/growthbook · UserContext{ enabled?: boolean | undefined; qaMode?: boolean | undefined; enableDevMode?: boolean | undefined; attributes?: Attributes | undefined; url?: string | undefined; blockedChangeIds?: string[] | undefined; stickyBucketAssignmentDocs?: Record<string, StickyAssignmentsDocument> | undefined; saveStickyBucketAssignmentDoc?: ((doc: StickyAssignmentsDocument) => Promise<unknown>) | undefined; forcedVariations?: Record<string, number> | undefined; forcedFeatureValues?: Map<string, any> | undefined; attributeOverrides?: Attributes | undefined; trackingCallback?: TrackingCallback | undefined; onFeatureUs…{ enabled?: boolean | undefined; qaMode?: boolean | undefined; enableDevMode?: boolean | undefined; attributes?: Attributes | undefined; remoteGroupIds?: string[] | undefined; url?: string | undefined; blockedChangeIds?: string[] | undefined; stickyBucketAssignmentDocs?: Record<string, StickyAssignmentsDocument> | undefined; saveStickyBucketAssignmentDoc?: ((doc: StickyAssignmentsDocument) => Promise<unknown>) | undefined; forcedVariations?: Record<string, number> | undefined; forcedFeatureValues?: Map<string, any> | undefined; attributeOverrides?: Attributes | undefined; trackingCallback?: Tr…
@growthbook/growthbook · evalCondition(obj: TestedObj, condition: ConditionInterface, savedGroups?: SavedGroupsPayload | undefined, visited?: Set<string> | undefined): boolean(obj: TestedObj, condition: ConditionInterface, options?: EvalConditionOptions | undefined): boolean
@growthbook/growthbook · AutoExperimentExperiment<T> & { changeId?: string | undefined; manual?: boolean | undefined; }Experiment<T> & { changeId?: string | undefined; manual?: boolean | undefined; metadata?: PayloadMetadata | undefined; contextualBanditRef?: string | undefined; }
@growthbook/growthbook · GrowthBookPayload{ features?: FeatureDefinitions | undefined; dateUpdated?: string | undefined; encryptedFeatures?: string | undefined; experiments?: AutoExperiment<AutoExperimentVariation>[] | undefined; encryptedExperiments?: string | undefined; savedGroups?: SavedGroupsPayload | undefined; encryptedSavedGroups?: string | undefined; contextualBandits?: ContextualBanditDefinitions | undefined; encryptedContextualBandits?: string | undefined; }{ features?: FeatureDefinitions | undefined; dateUpdated?: string | undefined; encryptedFeatures?: string | undefined; experiments?: AutoExperiment<AutoExperimentVariation>[] | undefined; encryptedExperiments?: string | undefined; savedGroups?: SavedGroupsPayload | undefined; encryptedSavedGroups?: string | undefined; contextualBandits?: ContextualBanditDefinitions | undefined; encryptedContextualBandits?: string | undefined; interleavings?: InterleavingDefinitions | undefined; encryptedInterleavings?: string | undefined; }
@growthbook/growthbook · FeatureApiResponse{ features?: FeatureDefinitions | undefined; dateUpdated?: string | undefined; encryptedFeatures?: string | undefined; experiments?: AutoExperiment<AutoExperimentVariation>[] | undefined; encryptedExperiments?: string | undefined; savedGroups?: SavedGroupsPayload | undefined; encryptedSavedGroups?: string | undefined; contextualBandits?: ContextualBanditDefinitions | undefined; encryptedContextualBandits?: string | undefined; }{ features?: FeatureDefinitions | undefined; dateUpdated?: string | undefined; encryptedFeatures?: string | undefined; experiments?: AutoExperiment<AutoExperimentVariation>[] | undefined; encryptedExperiments?: string | undefined; savedGroups?: SavedGroupsPayload | undefined; encryptedSavedGroups?: string | undefined; contextualBandits?: ContextualBanditDefinitions | undefined; encryptedContextualBandits?: string | undefined; interleavings?: InterleavingDefinitions | undefined; encryptedInterleavings?: string | undefined; }
@growthbook/growthbook · SavedGroupPayloadEntry{ type: "list"; attributeKey: string; values: (string | number)[]; } | { type: "condition"; condition: ConditionInterface; }{ type: "list"; attributeKey: string; values: (string | number)[]; } | { type: "condition"; condition: ConditionInterface; } | { type: "remote"; attributeKey: string; valuesFrom?: string | undefined; }

Membros de classes ou interfaces removidos

Nenhuma detectada.

Membros de classes ou interfaces alterados

memberAntesDepois
GrowthBook.getAttributes(): { [x: string]: any; }(): Attributes

Novas descontinuações

Nenhuma detectada.

Mudanças de requisitos (engines, dependências peer)

Nenhuma detectada.

Novos exports (26)
importexportkind
@growthbook/growthbookredisResolverfunction
@growthbook/growthbookPayloadFilterstype
@growthbook/growthbookRedisSetClienttype
@growthbook/growthbookpruneConditionfunction
@growthbook/growthbookPayloadMetadatatype
@growthbook/growthbookRemoteSavedGrouptype
@growthbook/growthbookSavedGroupResolvertype
@growthbook/growthbookEvalConditionOptionstype
@growthbook/growthbookReducePayloadOptionstype
@growthbook/growthbookTypeMismatchCallbacktype
@growthbook/growthbookgetRemoteSavedGroupsfunction
@growthbook/growthbookConditionTypeMismatchtype
@growthbook/growthbookresolveRemoteGroupIdsfunction
@growthbook/growthbookInterleavingDefinitiontype
@growthbook/growthbookInterleavingDefinitionstype
@growthbook/growthbookREMOTE_GROUP_IDS_ATTRIBUTEvariable
@growthbook/growthbook/pluginsinterleavefunction
@growthbook/growthbook/pluginsInterleavedItemtype
@growthbook/growthbook/pluginsInterleaveConfigtype
@growthbook/growthbook/pluginsInterleaveResulttype
@growthbook/growthbook/pluginsinterleavePluginfunction
@growthbook/growthbook/pluginsInterleaveOptionstype
@growthbook/growthbook/pluginsInterleaveExposuretype
@growthbook/growthbook/pluginsInterleavePluginOptionstype
@growthbook/growthbook/pluginsInterleaveTrackingPropstype
@growthbook/growthbook/pluginsEVENT_INTERLEAVE_EXPOSUREvariable

Dê estes dados ao seu agente de IA

Vigia é um servidor MCP gratuito: seu agente de programação verifica versões, mudanças incompatíveis e vulnerabilidades antes de escrever código. Sem cadastro, sem chave de API.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Adicionar ao CursorAdicionar ao VS Code★ Estrela no GitHub

Qualquer outro cliente MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Skill para agentes (SKILL.md): diz ao agente quando usar o Vigia · GitHub Action para pull requests

Perguntas frequentes

Quais são as mudanças incompatíveis ao atualizar @growthbook/growthbook de 1 para 2?

Entre @growthbook/growthbook 1.8.0 e 2.0.0, o Vigia encontrou 0 exports removidos, 8 assinaturas alteradas e 1 membros de classes ou interfaces removidos ou alterados.

O que foi descontinuado em @growthbook/growthbook 2?

0 exports ou membros foram marcados como descontinuados em @growthbook/growthbook 2.0.0.

Para agentes

GET https://vigia.coredls.cloud/v1/packages/npm/@growthbook/growthbook/upgrade?from=1.8.0&to=2.0.0