diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ca584ece761..18c811f54dea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,7 +71,7 @@ ## 6.4.0 -- [core] feat: initalScope in SDK Options (#3544) +- [core] feat: initialScope in SDK Options (#3544) - [node] feat: Release Health for Node (Session Aggregates) (#3319) - [node] feat: Autoload Database Integrations in Node environment (#3483) - [react] feat: Add support for React 17 Error Boundaries (#3532) diff --git a/packages/browser/test/unit/index.test.ts b/packages/browser/test/unit/index.test.ts index bab0d2ac8840..f85dc131d3ce 100644 --- a/packages/browser/test/unit/index.test.ts +++ b/packages/browser/test/unit/index.test.ts @@ -184,14 +184,14 @@ describe('SentryBrowser initialization', () => { expect(global.__SENTRY__.hub._stack[0].scope._tags).to.deep.equal({ a: 'b' }); }); - it('should use initalScope Scope', () => { + it('should use initialScope Scope', () => { const scope = new Scope(); scope.setTags({ a: 'b' }); init({ dsn, initialScope: scope }); expect(global.__SENTRY__.hub._stack[0].scope._tags).to.deep.equal({ a: 'b' }); }); - it('should use initalScope callback', () => { + it('should use initialScope callback', () => { init({ dsn, initialScope: scope => { diff --git a/packages/types/src/options.ts b/packages/types/src/options.ts index 5cfd07819019..9b42c48ed0e8 100644 --- a/packages/types/src/options.ts +++ b/packages/types/src/options.ts @@ -133,7 +133,7 @@ export interface Options { autoSessionTracking?: boolean; /** - * Set data to the inital scope + * Initial data to populate scope. */ initialScope?: CaptureContext;