@uniweb/core 1.6.18 → 1.6.19

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/uniweb.js +8 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/core",
3
- "version": "1.6.18",
3
+ "version": "1.6.19",
4
4
  "description": "Core classes for the Uniweb platform - Uniweb, Website, Page, Block",
5
5
  "type": "module",
6
6
  "exports": {
@@ -53,7 +53,7 @@
53
53
  "vitest": "^4.1.7"
54
54
  },
55
55
  "dependencies": {
56
- "@uniweb/theming": "~1.3.5",
56
+ "@uniweb/theming": "~1.3.8",
57
57
  "@uniweb/semantic-parser": "~1.13.6"
58
58
  },
59
59
  "scripts": {
package/src/uniweb.js CHANGED
@@ -105,12 +105,14 @@ export default class Uniweb {
105
105
  // `defaultInsets` above.
106
106
  this.tracking = null
107
107
 
108
- // Reserved for `@uniweb/api` — the one client instance per page. That
109
- // package is bundled into each foundation, so a page with a primary
110
- // foundation and extensions holds several copies of its code; the first to
111
- // need a client creates one and parks it here, and every other copy adopts
112
- // it instead of creating another. Core implements nothing on it: declared
113
- // null so the seal permits the assignment, nothing more. Same pattern as
108
+ // The site's client for its `backend` service. `@uniweb/api`, which the
109
+ // foundation bundles, makes it the first time one is needed and keeps it
110
+ // here. It lasts the whole visit: this singleton is made once, every page
111
+ // renders on it, so the session and the reads the client holds carry from
112
+ // page to page. A process holding several sites holds a Uniweb, and so a
113
+ // client, for each. Another copy of that package (an extension's) adopts
114
+ // the one kept here. Core implements nothing on it: declared null so the
115
+ // seal permits the assignment, nothing more. Same pattern as
114
116
  // `defaultInsets` above.
115
117
  this.api = null
116
118