Repository navigation
feat: "SDK key" is now "Project ID" in initialize; accept { projectId }; version 19.6.0 - #209
Merged
Merged
Conversation
…sion 19.6.0
- index.d.ts: initialize(projectId, options) and initialize({ projectId, ... })
overloads, new Gleap.InitializeOptions type (disablePing marked deprecated).
- Gleap.initialize accepts the Project ID positionally (unchanged), as
options.projectId in a single options object, or in the second argument.
- JSDoc, README and comments say Project ID; the value is the same key.
- Tests for every initialize form.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
boehlerlukas
force-pushed
the
feat/project-id-name
branch
from
November 7, 2026 15:18
4d189b6 to
4178d59
Compare
boehlerlukas
changed the base branch from
fix-identity-provider-and-ip-cookies
to
master
November 7, 2026 15:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Stacked on #208 (base:
fix-identity-provider-and-ip-cookies). Merge #208 first; GitHub then retargets this tomaster.Implements the Project ID naming contract: the public key
Gleap.initializetakes is now called Project ID. The value is the same, so every existing key keeps working and no customer has to change anything.Changes
index.d.ts:initialize(projectId: string, options?: boolean | Gleap.InitializeOptions)plus a single-object overloadinitialize({ projectId, sessionDuration }). NewGleap.InitializeOptionstype;disablePingis marked@deprecated(it already had no effect).Gleap.initializeaccepts the Project ID:Gleap.initialize("YOUR_PROJECT_ID")Gleap.initialize({ projectId: "YOUR_PROJECT_ID", sessionDuration })Gleap.initialize(undefined, { projectId })The legacy boolean second argument still works.
GleapSession.sdkKeyis unchanged (minimal diff).Tests
npx jest: 38 suites, 700 tests pass (newsrc/GleapInitialize.test.jscovers every form).npm run build: compiles (build output not committed, as in earlier PRs).tsc --strictover a sample using every overload passes; the object form withoutprojectIdis rejected.🤖 Generated with Claude Code