@_linked/server 2.24.1 → 2.24.3

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,17 @@
1
1
  # @\_linked/server
2
2
 
3
+ ## 2.24.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#155](https://github.com/linked-fw/server/pull/155) [`c0fcc6f`](https://github.com/linked-fw/server/commit/c0fcc6f42c8ef611ceca5ee997d3f09b3aa890bd) Thanks [@flyon](https://github.com/flyon)! - Publish only the files consumers need; the tarball no longer includes `.changeset/`, `.gitattributes`, `.github/`, `docs/`, `jest.config.cjs`, `renovate.json` or tsconfig files.
8
+
9
+ ## 2.24.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#152](https://github.com/linked-fw/server/pull/152) [`43b7ec2`](https://github.com/linked-fw/server/commit/43b7ec24e2451f35a8c19d0c56b51a8161272e0b) Thanks [@flyon](https://github.com/flyon)! - Installed linked packages with a backend are now loaded once, through Node. Under an app's dev SSR runner the backend loader's `import()` was rewritten by Vite's SSR transform, so each installed package's backend was evaluated a second time and whichever copy registered last owned the shape registry — properties added to a shape by another package could go missing. The loader now uses a native `import()` the transform cannot rewrite.
14
+
3
15
  ## 2.24.1
4
16
 
5
17
  ### Patch Changes
@@ -184,7 +184,9 @@ export declare class LinkedServer extends Shape {
184
184
  ensurePackageBackendProviders(pkg: string, warnIfNotFound?: boolean): Promise<void>;
185
185
  /**
186
186
  * Node's `import()`. Called with the absolute file URL of a resolved backend
187
- * entry (see resolveBackendEntry), never a bare name.
187
+ * entry (see resolveBackendEntry), never a bare name. Goes through
188
+ * nativeImport so a dev SSR runner bundling this file cannot rewrite it into
189
+ * its own loader and evaluate the package a second time.
188
190
  */
189
191
  protected importModule(specifier: string): Promise<any>;
190
192
  /**
@@ -32,6 +32,7 @@ import { LinkedErrorLogging } from '@_linked/core/utils/LinkedErrorLogging';
32
32
  import { FileStorePurposes, LinkedFileStorage, } from '@_linked/core/utils/LinkedFileStorage';
33
33
  import { getResizedImagesStore } from '../utils/resizedImagesPurpose.js';
34
34
  import { paint } from '../utils/paint.js';
35
+ import { nativeImport } from '../utils/nativeImport.js';
35
36
  import { createJsonBodyParser } from '../utils/jsonBodyParser.js';
36
37
  import { LinkedStorage } from '@_linked/core/utils/LinkedStorage';
37
38
  import { autoLoadOntologyData } from '@_linked/core/utils/Package';
@@ -852,10 +853,12 @@ let LinkedServer = class LinkedServer extends Shape {
852
853
  }
853
854
  /**
854
855
  * Node's `import()`. Called with the absolute file URL of a resolved backend
855
- * entry (see resolveBackendEntry), never a bare name.
856
+ * entry (see resolveBackendEntry), never a bare name. Goes through
857
+ * nativeImport so a dev SSR runner bundling this file cannot rewrite it into
858
+ * its own loader and evaluate the package a second time.
856
859
  */
857
860
  importModule(specifier) {
858
- return import(/* @vite-ignore */ specifier);
861
+ return nativeImport(specifier);
859
862
  }
860
863
  /**
861
864
  * Filters local workspace packages to only those reachable from the app's