epicenter-libs 3.35.0 → 3.35.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 +26 -0
- package/dist/browser/epicenter.js +11 -5
- package/dist/browser/epicenter.js.map +1 -1
- package/dist/cjs/epicenter.js +11 -5
- package/dist/cjs/epicenter.js.map +1 -1
- package/dist/epicenter.js +11 -5
- package/dist/epicenter.js.map +1 -1
- package/dist/epicenter.min.js +1 -1
- package/dist/epicenter.min.js.map +1 -1
- package/dist/module/epicenter.js +11 -5
- package/dist/module/epicenter.js.map +1 -1
- package/package.json +1 -1
- package/src/adapters/authentication.ts +2 -1
- package/src/adapters/cometd.ts +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
## [3.35.1](https://github.com/forio/epicenter-libs/compare/v3.34.2...v3.35.1) (2026-09-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* correct privateKeySpec in examples and tests ([802ae14](https://github.com/forio/epicenter-libs/commit/802ae146edbf7c2b0c5ed8bba333546dd23b5244))
|
|
7
|
+
* don't cache a failed CometD startup or drop session on teardown ([2ef183e](https://github.com/forio/epicenter-libs/commit/2ef183edeeea88c8fd4ec99f8566269a7a9265e4))
|
|
8
|
+
* fix required optionals.message errors ([d7266e6](https://github.com/forio/epicenter-libs/commit/d7266e67a43f5326ed467e9d5bd13d9584a0d242))
|
|
9
|
+
* resolve lockfile conflict ([ca6c8c1](https://github.com/forio/epicenter-libs/commit/ca6c8c18a49449eacf7f5620cc7fe61b1a9bb429))
|
|
10
|
+
* type task payload.target, ISO failSafeTermination, doc privileges ([79f613c](https://github.com/forio/epicenter-libs/commit/79f613cbfac11c0b2ddf02095625e9cbb3836f20))
|
|
11
|
+
* use a single build timestamp across all bundles ([27f8fdb](https://github.com/forio/epicenter-libs/commit/27f8fdb8795769bcdd68b1873be3b98449228872))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* add docket adapter ([c59eebf](https://github.com/forio/epicenter-libs/commit/c59eebfb27bad4ec43a17f28823bc1a95afb8182))
|
|
17
|
+
* add encyclopedia adapter ([1fea349](https://github.com/forio/epicenter-libs/commit/1fea349f0b027aba1a38a1648b19a9d738566469))
|
|
18
|
+
* add file adapter ([a719fd5](https://github.com/forio/epicenter-libs/commit/a719fd521efe1427ba815b418813eb6024b11278))
|
|
19
|
+
* add git adapter ([20f3294](https://github.com/forio/epicenter-libs/commit/20f3294241baae88990890d4dcdfd951bf002bd6))
|
|
20
|
+
* add pipeline adapter ([f3271d6](https://github.com/forio/epicenter-libs/commit/f3271d66a676d2d7e8f8a8d6069b08a9445f036a))
|
|
21
|
+
* add powerpoint adapter ([7e825fd](https://github.com/forio/epicenter-libs/commit/7e825fd0d23b57f739bd984e10719d49268a4787))
|
|
22
|
+
* add registration adapter ([a848097](https://github.com/forio/epicenter-libs/commit/a848097525f0cae1b6c6ac9cabe7f097c9d6d04a))
|
|
23
|
+
* add taskAdapter.query wrapping GET /task/search ([d787069](https://github.com/forio/epicenter-libs/commit/d787069d29041dcbbb835595ae8a965b0c0731bb))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
1
27
|
# [3.35.0](https://github.com/forio/epicenter-libs/compare/v3.34.2...v3.35.0) (2026-07-21)
|
|
2
28
|
|
|
3
29
|
|
|
@@ -3361,6 +3361,7 @@ const CONNECT_META_CHANNEL = '/meta/connect';
|
|
|
3361
3361
|
const DISCONNECT_META_CHANNEL = '/meta/disconnect';
|
|
3362
3362
|
const HANDSHAKE_META_CHANNEL = '/meta/handshake';
|
|
3363
3363
|
const COMETD_RECONNECTED = 'COMETD_RECONNECTED';
|
|
3364
|
+
const CHANNELS_NOT_ENABLED = 'CHANNELS_NOT_ENABLED';
|
|
3364
3365
|
const DEFAULT_CHANNEL_PROTOCOL = 'cometd';
|
|
3365
3366
|
// error messages that indicate session invalidation as
|
|
3366
3367
|
// described in cometd documentation and oumuamua source code:
|
|
@@ -3412,7 +3413,7 @@ class CometdAdapter {
|
|
|
3412
3413
|
}) {
|
|
3413
3414
|
var _project$channelProto;
|
|
3414
3415
|
const project = await get$f();
|
|
3415
|
-
if (!project.channelEnabled) throw new EpicenterError('Push Channels are not enabled on this project');
|
|
3416
|
+
if (!project.channelEnabled) throw new EpicenterError('Push Channels are not enabled on this project', CHANNELS_NOT_ENABLED);
|
|
3416
3417
|
const channelProtocol = ((_project$channelProto = project.channelProtocol) === null || _project$channelProto === void 0 ? void 0 : _project$channelProto.toLowerCase()) || DEFAULT_CHANNEL_PROTOCOL;
|
|
3417
3418
|
const {
|
|
3418
3419
|
CometD
|
|
@@ -3518,7 +3519,11 @@ class CometdAdapter {
|
|
|
3518
3519
|
}
|
|
3519
3520
|
async init(options) {
|
|
3520
3521
|
if (!this.initialization) {
|
|
3521
|
-
|
|
3522
|
+
// A rejected startup must not be cached, or every later init() call re-throws it
|
|
3523
|
+
this.initialization = this.startup(options).catch(error => {
|
|
3524
|
+
this.initialization = undefined;
|
|
3525
|
+
throw error;
|
|
3526
|
+
});
|
|
3522
3527
|
}
|
|
3523
3528
|
return this.initialization;
|
|
3524
3529
|
}
|
|
@@ -3935,7 +3940,8 @@ function setLocalSession(session) {
|
|
|
3935
3940
|
*/
|
|
3936
3941
|
async function removeLocalSession() {
|
|
3937
3942
|
identification.session = undefined;
|
|
3938
|
-
|
|
3943
|
+
// CometD disconnect is best-effort cleanup; its failure must not fail session removal
|
|
3944
|
+
await cometdAdapter.disconnect().catch(() => undefined);
|
|
3939
3945
|
}
|
|
3940
3946
|
|
|
3941
3947
|
/**
|
|
@@ -12112,9 +12118,9 @@ var utilities = /*#__PURE__*/Object.freeze({
|
|
|
12112
12118
|
proxy: proxy
|
|
12113
12119
|
});
|
|
12114
12120
|
|
|
12115
|
-
/* "3.35.
|
|
12121
|
+
/* "3.35.1", "Browsers" and "2026-09-24T20:47:51.952Z" are injected at build time — by
|
|
12116
12122
|
* @rollup/plugin-replace for the shipped bundles and by Vite's `define` for tests */
|
|
12117
|
-
const version = `Epicenter (v${"3.35.
|
|
12123
|
+
const version = `Epicenter (v${"3.35.1"}) for ${"Browsers"} | Build Date: ${"2026-09-24T20:47:51.952Z"}`;
|
|
12118
12124
|
const UNAUTHORIZED = 401;
|
|
12119
12125
|
const FORBIDDEN = 403;
|
|
12120
12126
|
const DEFAULT_ERROR_HANDLERS = {};
|