@_linked/server 2.13.0 → 2.13.2
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,45 @@
|
|
|
1
1
|
# @\_linked/server
|
|
2
2
|
|
|
3
|
+
## 2.13.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#89](https://github.com/linked-fw/server/pull/89) [`1f53442`](https://github.com/linked-fw/server/commit/1f53442e67cfb0abb263b0c430406b3846dc1bbc) Thanks [@flyon](https://github.com/flyon)! - `RouteConfig` compiles under React 19.
|
|
8
|
+
|
|
9
|
+
React 19 removed the global `JSX` namespace, so `RouteConfig`'s `component` and
|
|
10
|
+
`render` fields referenced a type that no longer exists and the package failed
|
|
11
|
+
to build for any consumer on React 19. They now use `React.JSX.Element`, which
|
|
12
|
+
is the same type under its current name.
|
|
13
|
+
|
|
14
|
+
## 2.13.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#87](https://github.com/linked-fw/server/pull/87) [`063464c`](https://github.com/linked-fw/server/commit/063464ccfe9df2ae3498479483b33f12e926c91f) Thanks [@flyon](https://github.com/flyon)! - Ontology terms are no longer individual module exports.
|
|
19
|
+
|
|
20
|
+
`lincd-server.ts` exported all 11 of its terms as module-scope bindings, and
|
|
21
|
+
several of those names are also shape class names in this package —
|
|
22
|
+
`LincdWebApp`, `LincdAPI`, `BackendAPIStore` and others. Two bindings of the
|
|
23
|
+
same name in one bundle scope make the bundler rename one of them:
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
Ju = ns("BackendAPIStore"); // the term keeps the binding
|
|
27
|
+
n(nt, "BackendAPIStore2"); // the class is renamed
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
When the loser is a shape class, `constructor.name` is its IRI and the name
|
|
31
|
+
`Server.call` routes on, so a production client asks the backend for a shape it
|
|
32
|
+
has never heard of and the call answers 501.
|
|
33
|
+
|
|
34
|
+
Terms are now reached only through the `lincdServer` namespace object:
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
import { lincdServer } from "@_linked/server/ontologies/lincd-server";
|
|
38
|
+
lincdServer.LincdWebApp; // instead of a bare `LincdWebApp` import
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Nothing imported a term individually, so no call site changes.
|
|
42
|
+
|
|
3
43
|
## 2.13.0
|
|
4
44
|
|
|
5
45
|
### Minor Changes
|
|
@@ -22,17 +22,6 @@ export declare var loadData: () => Promise<{
|
|
|
22
22
|
}>;
|
|
23
23
|
export declare var ns: (term: string) => import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
24
24
|
export declare var _self: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
25
|
-
export declare var LincdServer: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
26
|
-
export declare var BackendFileStore: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
27
|
-
export declare var NodeFileStore: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
28
|
-
export declare var BackendStore: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
29
|
-
export declare var BackendAPIStore: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
30
|
-
export declare var LincdWebApp: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
31
|
-
export declare var ownPackage: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
32
|
-
export declare var maintainsPackage: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
33
|
-
export declare var N3FileStore: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
34
|
-
export declare var LincdAPI: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
35
|
-
export declare var hasAPI: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
36
25
|
export declare const lincdServer: {
|
|
37
26
|
LincdServer: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
38
27
|
BackendFileStore: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
@@ -14,17 +14,24 @@ export var loadData = async () => {
|
|
|
14
14
|
};
|
|
15
15
|
export var ns = createNameSpace('http://lincd.org/ont/lincd-server/');
|
|
16
16
|
export var _self = ns('');
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
// Terms are properties of the namespace object below, not module-scope
|
|
18
|
+
// exports. Most of these names are also SHAPE CLASS names in this package
|
|
19
|
+
// (BackendAPIStore, LincdWebApp, LincdAPI, ...). Two bindings of the same name
|
|
20
|
+
// in one bundle scope make the bundler rename one of them, and when the loser
|
|
21
|
+
// is the class, `constructor.name` becomes `BackendAPIStore2` -- which is the
|
|
22
|
+
// shape's IRI and the name `Server.call` routes on. The client then asks a
|
|
23
|
+
// backend that has no such shape, and every store round-trip answers 501.
|
|
24
|
+
const LincdServer = ns('LincdServer');
|
|
25
|
+
const BackendFileStore = ns('BackendFileStore');
|
|
26
|
+
const NodeFileStore = ns('NodeFileStore');
|
|
27
|
+
const BackendStore = ns('BackendStore');
|
|
28
|
+
const BackendAPIStore = ns('BackendAPIStore');
|
|
29
|
+
const LincdWebApp = ns('LincdWebApp');
|
|
30
|
+
const ownPackage = ns('ownPackage');
|
|
31
|
+
const maintainsPackage = ns('maintainsPackage');
|
|
32
|
+
const N3FileStore = ns('N3FileStore');
|
|
33
|
+
const LincdAPI = ns('LincdAPI');
|
|
34
|
+
const hasAPI = ns('hasAPI');
|
|
28
35
|
export const lincdServer = {
|
|
29
36
|
LincdServer,
|
|
30
37
|
BackendFileStore,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lincd-server.js","sourceRoot":"","sources":["../../../src/ontologies/lincd-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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E,8EAA8E;AAC9E,8EAA8E;AAC9E,2EAA2E;AAC3E,0EAA0E;AAC1E,MAAM,WAAW,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC;AACtC,MAAM,gBAAgB,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC;AAChD,MAAM,aAAa,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC;AAC1C,MAAM,YAAY,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC;AACxC,MAAM,eAAe,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC;AAC9C,MAAM,WAAW,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC;AACtC,MAAM,UAAU,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC;AACpC,MAAM,gBAAgB,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC;AAChD,MAAM,WAAW,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC;AACtC,MAAM,QAAQ,GAAG,EAAE,CAAC,UAAU,CAAC,CAAC;AAChC,MAAM,MAAM,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC;AAE5B,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,WAAW;IACX,gBAAgB;IAChB,aAAa;IACb,YAAY;IACZ,WAAW;IACX,eAAe;IACf,WAAW;IACX,UAAU;IACV,gBAAgB;IAChB,QAAQ;IACR,MAAM;CACP,CAAC;AAEF,cAAc,CACZ,KAAK,EACL,EAAE,EACF,cAAc,EACd,QAAQ,EACR,2BAA2B,CAC5B,CAAC"}
|
|
@@ -13,11 +13,11 @@ export interface RouteConfig {
|
|
|
13
13
|
* For lazy loading, use React.lazy(() => import('./Component')) with webpackChunkName comment
|
|
14
14
|
* For eager loading, import the component directly
|
|
15
15
|
*/
|
|
16
|
-
component?: React.LazyExoticComponent<() => JSX.Element> | React.ComponentType<any>;
|
|
16
|
+
component?: React.LazyExoticComponent<() => React.JSX.Element> | React.ComponentType<any>;
|
|
17
17
|
/**
|
|
18
18
|
* Custom render function for the route (alternative to component)
|
|
19
19
|
*/
|
|
20
|
-
render?: () => JSX.Element;
|
|
20
|
+
render?: () => React.JSX.Element;
|
|
21
21
|
/**
|
|
22
22
|
* Whether this route requires authentication
|
|
23
23
|
* @default false
|