Aggiornare @growthbook/growthbook da 1.x a 2.x
Confronto dell’API pubblica di @growthbook/growthbook 1.8.0 e 2.0.0, calcolato automaticamente dai tipi TypeScript. Una firma modificata è una possibile modifica incompatibile, non una certezza.
Riepilogo
| Percorsi di import rimossi | 0 |
|---|---|
| Export rimossi | 0 |
| Firme modificate | 8 |
| Membri di classi o interfacce rimossi | 0 |
| Membri di classi o interfacce modificati | 1 |
| Nuove deprecazioni | 0 |
| Requisiti cambiati (engines, dipendenze peer) | 0 |
| Nuovi export | 26 |
Export rimossi
Nessuna rilevata.
Firme modificate
| export | Prima | Dopo |
|---|---|---|
@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 · AutoExperiment | Experiment<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; } |
Membri di classi o interfacce rimossi
Nessuna rilevata.
Membri di classi o interfacce modificati
| member | Prima | Dopo |
|---|---|---|
GrowthBook.getAttributes | (): { [x: string]: any; } | (): Attributes |
Nuove deprecazioni
Nessuna rilevata.
Requisiti cambiati (engines, dipendenze peer)
Nessuna rilevata.
Nuovi export (26)
| import | export | kind |
|---|---|---|
@growthbook/growthbook | redisResolver | function |
@growthbook/growthbook | PayloadFilters | type |
@growthbook/growthbook | RedisSetClient | type |
@growthbook/growthbook | pruneCondition | function |
@growthbook/growthbook | PayloadMetadata | type |
@growthbook/growthbook | RemoteSavedGroup | type |
@growthbook/growthbook | SavedGroupResolver | type |
@growthbook/growthbook | EvalConditionOptions | type |
@growthbook/growthbook | ReducePayloadOptions | type |
@growthbook/growthbook | TypeMismatchCallback | type |
@growthbook/growthbook | getRemoteSavedGroups | function |
@growthbook/growthbook | ConditionTypeMismatch | type |
@growthbook/growthbook | resolveRemoteGroupIds | function |
@growthbook/growthbook | InterleavingDefinition | type |
@growthbook/growthbook | InterleavingDefinitions | type |
@growthbook/growthbook | REMOTE_GROUP_IDS_ATTRIBUTE | variable |
@growthbook/growthbook/plugins | interleave | function |
@growthbook/growthbook/plugins | InterleavedItem | type |
@growthbook/growthbook/plugins | InterleaveConfig | type |
@growthbook/growthbook/plugins | InterleaveResult | type |
@growthbook/growthbook/plugins | interleavePlugin | function |
@growthbook/growthbook/plugins | InterleaveOptions | type |
@growthbook/growthbook/plugins | InterleaveExposure | type |
@growthbook/growthbook/plugins | InterleavePluginOptions | type |
@growthbook/growthbook/plugins | InterleaveTrackingProps | type |
@growthbook/growthbook/plugins | EVENT_INTERLEAVE_EXPOSURE | variable |
Dai questi dati al tuo agente IA
Vigia è un server MCP gratuito: il tuo agente di programmazione verifica versioni, modifiche incompatibili e vulnerabilità prima di scrivere codice. Senza registrazione né chiave API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Aggiungi a CursorAggiungi a VS Code★ Stella su GitHub
Qualsiasi altro client MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill per agenti (SKILL.md): dice all'agente quando usare Vigia · GitHub Action per le pull request
Domande frequenti
Quali sono le modifiche incompatibili aggiornando @growthbook/growthbook da 1 a 2?
Tra @growthbook/growthbook 1.8.0 e 2.0.0, Vigia ha trovato 0 export rimossi, 8 firme modificate e 1 membri di classi o interfacce rimossi o modificati.
Cosa è stato deprecato in @growthbook/growthbook 2?
0 export o membri risultano ora deprecati in @growthbook/growthbook 2.0.0.
Per gli agenti
GET https://vigia.coredls.cloud/v1/packages/npm/@growthbook/growthbook/upgrade?from=1.8.0&to=2.0.0