@_linked/server 1.0.8 → 2.0.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/.github/workflows/ci.yml +15 -2
- package/CHANGELOG.md +44 -0
- package/package.json +4 -4
package/.github/workflows/ci.yml
CHANGED
|
@@ -8,23 +8,36 @@ on:
|
|
|
8
8
|
jobs:
|
|
9
9
|
build-and-test:
|
|
10
10
|
name: Build & Test
|
|
11
|
-
# Skip CI on the automated Release PR created by changesets/action.
|
|
12
|
-
if: ${{ !(github.event.pull_request.base.ref == 'main' && github.head_ref == 'changeset-release/main') }}
|
|
13
11
|
runs-on: ubuntu-latest
|
|
14
12
|
steps:
|
|
13
|
+
- name: Detect Release PR
|
|
14
|
+
id: rpr
|
|
15
|
+
run: |
|
|
16
|
+
if [[ "${{ github.event.pull_request.head.ref }}" == "changeset-release/main" ]]; then
|
|
17
|
+
echo "is_release_pr=true" >> $GITHUB_OUTPUT
|
|
18
|
+
echo "Release PR from changesets/action detected — skipping build/test (auto-generated version+CHANGELOG only)."
|
|
19
|
+
else
|
|
20
|
+
echo "is_release_pr=false" >> $GITHUB_OUTPUT
|
|
21
|
+
fi
|
|
22
|
+
|
|
15
23
|
- name: Checkout
|
|
24
|
+
if: steps.rpr.outputs.is_release_pr == 'false'
|
|
16
25
|
uses: actions/checkout@v4
|
|
17
26
|
|
|
18
27
|
- name: Setup Node.js
|
|
28
|
+
if: steps.rpr.outputs.is_release_pr == 'false'
|
|
19
29
|
uses: actions/setup-node@v4
|
|
20
30
|
with:
|
|
21
31
|
node-version: 22.16.0
|
|
22
32
|
|
|
23
33
|
- name: Install dependencies
|
|
34
|
+
if: steps.rpr.outputs.is_release_pr == 'false'
|
|
24
35
|
run: npm ci --legacy-peer-deps
|
|
25
36
|
|
|
26
37
|
- name: Build
|
|
38
|
+
if: steps.rpr.outputs.is_release_pr == 'false'
|
|
27
39
|
run: npm run build
|
|
28
40
|
|
|
29
41
|
- name: Test
|
|
42
|
+
if: steps.rpr.outputs.is_release_pr == 'false'
|
|
30
43
|
run: npm test --if-present
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @\_linked/server
|
|
2
2
|
|
|
3
|
+
## 2.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#6](https://github.com/linked-cm/server/pull/6) [`7eb425b`](https://github.com/linked-cm/server/commit/7eb425b26cc1e234041c6a678b184874ef2be017) Thanks [@flyon](https://github.com/flyon)! - Rebuild + republish. The 2.0.0 tarball shipped without `lib/` because the build silently failed against an empty `@_linked/server-utils@1.0.4` tarball. `@_linked/server-utils@1.0.5` now ships its `lib/` correctly, so this version compiles + packages as intended.
|
|
8
|
+
|
|
9
|
+
## 2.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [#4](https://github.com/linked-cm/server/pull/4) [`d1ad65c`](https://github.com/linked-cm/server/commit/d1ad65ccda75e643a30e911f97584d3a2b6ff3e8) Thanks [@flyon](https://github.com/flyon)! - Track `@_linked/core` storage-API renames and adopt the new BackendAPIStore config-object constructor.
|
|
14
|
+
|
|
15
|
+
**Breaking — call-site renames** (paired with the matching changes in `@_linked/core`):
|
|
16
|
+
|
|
17
|
+
- `LinkedStorage.setDefaultStore` → `setDefaultDataset`
|
|
18
|
+
- `LinkedStorage.setStoreForShapes` → `setDatasetForShapes`
|
|
19
|
+
- `LinkedStorage.getDefaultStore` → `getDefaultDataset`
|
|
20
|
+
- `LinkedStorage.getStores` → `getDatasets`
|
|
21
|
+
- `SparqlStore` → `SparqlDataset`
|
|
22
|
+
|
|
23
|
+
**Breaking — `BackendAPIStore` constructor takes a config object:**
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
// before
|
|
27
|
+
new BackendAPIStore("appData");
|
|
28
|
+
|
|
29
|
+
// after
|
|
30
|
+
new BackendAPIStore({ name: "appData" });
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The config field is `name` (renamed from `alias` in the intermediate iteration).
|
|
34
|
+
|
|
35
|
+
**Fix — scoped-package `/call` routes.** Backend now correctly routes `/call/@scope/pkg/method` requests, not just `/call/pkg/method`.
|
|
36
|
+
|
|
37
|
+
**Fix — relative bundle URLs in dev.** Drops the baked-in `:4000` origin so bundle URLs work whatever `PORT` the dev server binds to.
|
|
38
|
+
|
|
39
|
+
**Docs.** Constructor doc-comments refreshed from the older `lincd` naming to `linked`.
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
43
|
+
- [#4](https://github.com/linked-cm/server/pull/4) [`2ae7a72`](https://github.com/linked-cm/server/commit/2ae7a72b6381e1758cded50309762bd11de57bd5) Thanks [@flyon](https://github.com/flyon)! - Update `BackendAPIStore` to implement `IDataset` (renamed from `IQuadStore` in `@_linked/core`).
|
|
44
|
+
|
|
45
|
+
No functional change — import path and interface name updated to match the new `@_linked/core` export.
|
|
46
|
+
|
|
3
47
|
## 1.0.8
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": ""
|
|
12
12
|
},
|
|
13
|
-
"version": "
|
|
13
|
+
"version": "2.0.1",
|
|
14
14
|
"linkedPackage": true,
|
|
15
15
|
"main": "lib/cjs/index.js",
|
|
16
16
|
"types": "dist/lincd-server.d.ts",
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"zip-a-folder": "^3.1.8"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
+
"@changesets/changelog-github": "^0.5.2",
|
|
71
|
+
"@changesets/cli": "^2.29.8",
|
|
70
72
|
"@types/node": "^20.12.7",
|
|
71
73
|
"@types/react-dom": "^18.0.6",
|
|
72
74
|
"cross-env": "^7.0.3",
|
|
73
75
|
"prettier": "3.2.5",
|
|
74
|
-
"typescript-plugin-css-modules": "^5.1.0"
|
|
75
|
-
"@changesets/cli": "^2.29.8",
|
|
76
|
-
"@changesets/changelog-github": "^0.5.2"
|
|
76
|
+
"typescript-plugin-css-modules": "^5.1.0"
|
|
77
77
|
},
|
|
78
78
|
"module": "lib/esm/index.js",
|
|
79
79
|
"exports": {
|