@gaballahtech/seba 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.1] — 2026-11-05
4
+
5
+ Documentation-only patch. No runtime behaviour changed; the only functional difference is
6
+ the wording of one error message.
7
+
8
+ ### Fixed
9
+
10
+ - **Import paths in the shipped documentation.** The root entry point's JSDoc example still
11
+ read `import { Seba } from "seba"`, a name that npm rejects, and the `SebaConfigError`
12
+ thrown when the browser entry point runs without a DOM still told users to import
13
+ `"seba"` / `"seba/node"`. Both now use `@gaballahtech/seba` and
14
+ `@gaballahtech/seba/node`, and the browser/Node subpath JSDoc headers record their scoped
15
+ names. These strings are what `dist/**/*.d.ts` and the runtime error expose to consumers,
16
+ so 0.2.0 shipped documentation that could not be followed.
17
+
18
+ Persistence identifiers are deliberately unchanged: the IndexedDB database is still named
19
+ `seba` and the pending-authorization key is still `seba.pending-authorization`, so sessions
20
+ stored by 0.2.0 keep working after the upgrade.
21
+
3
22
  ## [0.2.0] — 2026-11-05
4
23
 
5
24
  External validation and hardening release. This is not a claim of production readiness; the
@@ -34,6 +53,14 @@ gates that could not run are listed explicitly.
34
53
  - `scripts/validation/public-discovery.mjs`: discovery checks against public providers.
35
54
  - `VALIDATION_REPORT.md`, this changelog, and a "Provider Compatibility" table in README.
36
55
 
56
+ ### Changed
57
+
58
+ - **Package name.** `seba` → `@gaballahtech/seba`. npm rejected the unscoped name with
59
+ `E403 Package name too similar to existing packages ses,send,eta,tebs,web3` and suggested
60
+ the scoped alternative. The import path is now `@gaballahtech/seba`, with
61
+ `@gaballahtech/seba/node` and `@gaballahtech/seba/browser` for the subpath entry points.
62
+ All examples and documentation were updated. Version is unchanged at `0.2.0`.
63
+
37
64
  ### Validated externally
38
65
 
39
66
  - Community Solid Server 7.3.0: discovery, Client ID Document fetch, PKCE/state/nonce
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Browser entry point (`seba/browser`).
2
+ * Browser entry point (`@gaballahtech/seba/browser`).
3
3
  *
4
4
  * Identical to the root entry point; browsers resolve the platform themselves. The
5
5
  * subpath exists so bundlers can target a browser-only module graph.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Browser entry point (`seba/browser`).
2
+ * Browser entry point (`@gaballahtech/seba/browser`).
3
3
  *
4
4
  * Identical to the root entry point; browsers resolve the platform themselves. The
5
5
  * subpath exists so bundlers can target a browser-only module graph.
@@ -17,7 +17,7 @@ const NAVIGATION_GRACE_MS = 1_500;
17
17
  */
18
18
  export function createBrowserPlatform() {
19
19
  if (typeof window === "undefined" || typeof document === "undefined") {
20
- throw new SebaConfigError("The browser entry point requires a DOM. Import \"seba\" in a browser or \"seba/node\" in Node.js.");
20
+ throw new SebaConfigError("The browser entry point requires a DOM. Import \"@gaballahtech/seba\" in a browser or \"@gaballahtech/seba/node\" in Node.js.");
21
21
  }
22
22
  return {
23
23
  kind: "browser",
@@ -1 +1 @@
1
- {"version":3,"file":"platform.js","sourceRoot":"","sources":["../../src/browser/platform.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,oCAAoC,EAAE,MAAM,cAAc,CAAC;AAE5F,8DAA8D;AAC9D,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC;AAE7G,uFAAuF;AACvF,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAElC;;;;GAIG;AACH,MAAM,UAAU,qBAAqB;IACnC,IAAI,OAAO,MAAM,KAAK,WAAW,IAA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aAAa;YACX,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1C,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;gBACnC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAChC,CAAC;YACD,MAAM,KAAK,GAAG,GAAG,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;YAC1C,MAAM,CAAC,OAAO,CAAC,YAAY,CACzB,EAAE,EACF,QAAQ,CAAC,KAAK,EACd,GAAG,GAAG,CAAC,QAAQ,GAAG,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,GAAG,GAAG,CAAC,IAAI,EAAE,CAC/D,CAAC;QACJ,CAAC;KACiB,CAAC;AACvB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Public entry point of the `seba` package.
2
+ * Public entry point of the `@gaballahtech/seba` package.
3
3
  *
4
4
  * @example
5
5
  * ```ts
6
- * import { Seba } from "seba";
6
+ * import { Seba } from "@gaballahtech/seba";
7
7
  *
8
8
  * const seba = new Seba({
9
9
  * clientId: "https://myapp.example/client-id.jsonld",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Node.js entry point (`seba/node`).
2
+ * Node.js entry point (`@gaballahtech/seba/node`).
3
3
  *
4
4
  * Identical to the root entry point; Node.js resolves its platform itself. The subpath
5
5
  * exists so server bundles never pull in browser-only modules.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Node.js entry point (`seba/node`).
2
+ * Node.js entry point (`@gaballahtech/seba/node`).
3
3
  *
4
4
  * Identical to the root entry point; Node.js resolves its platform itself. The subpath
5
5
  * exists so server bundles never pull in browser-only modules.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gaballahtech/seba",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Developer-friendly Solid-OIDC authentication: login, session restoration and DPoP-signed fetch in four methods.",
5
5
  "license": "MIT",
6
6
  "author": "gaballahtech",