Skip to content

feat: "SDK key" is now "Project ID" in initialize; accept { projectId }; version 19.6.0 - #209

Merged
boehlerlukas merged 1 commit into
masterfrom
feat/project-id-name
Nov 7, 2026
Merged

boehlerlukas merged 1 commit into
masterfrom
feat/project-id-name

Conversation

@boehlerlukas

Copy link
Copy Markdown
Contributor

Stacked on #208 (base: fix-identity-provider-and-ip-cookies). Merge #208 first; GitHub then retargets this to master.

Implements the Project ID naming contract: the public key Gleap.initialize takes 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 overload initialize({ projectId, sessionDuration }). New Gleap.InitializeOptions type; disablePing is marked @deprecated (it already had no effect).
  • Gleap.initialize accepts the Project ID:
    • positionally, as before: Gleap.initialize("YOUR_PROJECT_ID")
    • in one options object: Gleap.initialize({ projectId: "YOUR_PROJECT_ID", sessionDuration })
    • in the second argument when the first is empty: Gleap.initialize(undefined, { projectId })
      The legacy boolean second argument still works.
  • JSDoc, README and comments say "Project ID". No runtime warnings added.
  • Internal GleapSession.sdkKey is unchanged (minimal diff).
  • Version 19.6.0 (package.json, lock, CHANGELOG). Not published or tagged.

Tests

  • npx jest: 38 suites, 700 tests pass (new src/GleapInitialize.test.js covers every form).
  • npm run build: compiles (build output not committed, as in earlier PRs).
  • tsc --strict over a sample using every overload passes; the object form without projectId is rejected.

🤖 Generated with Claude Code

…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
boehlerlukas changed the base branch from fix-identity-provider-and-ip-cookies to master November 7, 2026 15:18
@boehlerlukas
boehlerlukas merged commit 8136ae7 into master Nov 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant