@_linked/s3 1.4.0 → 1.5.0

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,35 @@
1
1
  # @\_linked/s3
2
2
 
3
+ ## 1.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#28](https://github.com/linked-fw/s3/pull/28) [`a3e2308`](https://github.com/linked-fw/s3/commit/a3e2308b78e2c8237eabd395f11d325f775360a3) Thanks [@flyon](https://github.com/flyon)! - Require `@_linked/core@^2.22.8` (was `^2.21.0`), and pin it in the lockfile.
8
+
9
+ The declared range was wide enough that the resolved core depended on whatever the
10
+ consumer — or this repo's own CI, via `package-lock.json` — happened to install. Core
11
+ decides how a shape's IRI is minted, so a stale core made this package emit legacy
12
+ `data.lincd.org` IRIs instead of the arch-02 `linked.cm` scheme. Which IRIs a published
13
+ package produces should not be a function of the installer's dependency tree.
14
+
15
+ Minor rather than patch: this raises the minimum core a consumer must resolve, so it
16
+ changes what gets installed rather than only what this package does internally.
17
+
18
+ ## 1.4.1
19
+
20
+ ### Patch Changes
21
+
22
+ - [#26](https://github.com/linked-fw/s3/pull/26) [`e4c7ebe`](https://github.com/linked-fw/s3/commit/e4c7ebe7e78533fee0eada1eddab0575ed8fa53d) Thanks [@flyon](https://github.com/flyon)! - The ontology no longer registers by importing itself.
23
+
24
+ It carried `import * as _this from './<prefix>.js'` and passed that namespace to
25
+ `linkedOntology()`. Under `tsc` the self-reference survives; under a bundler it does
26
+ not — Rollup treats it as a circular import and elides it, so the binding is
27
+ `undefined` and a consuming app dies at boot with `_this is not defined`.
28
+
29
+ Registration now lives in a `<prefix>.register.ts` sibling, imported from the package
30
+ entry. Nothing changes for consumers: importing this package still registers the
31
+ ontology.
32
+
3
33
  ## 1.4.0
4
34
 
5
35
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  import './types.js';
2
- import './ontologies/s3.js';
2
+ import './ontologies/s3.register.js';
3
3
  import './shapes/S3Bucket.js';
4
4
  import './shapes/S3FileStore.js';
5
5
  import './utils/accessUrl.js';
package/lib/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import './types.js';
2
- import './ontologies/s3.js';
2
+ import './ontologies/s3.register.js';
3
3
  //SHAPES FIRST
4
4
  import './shapes/S3Bucket.js';
5
5
  import './shapes/S3FileStore.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AACpB,OAAO,oBAAoB,CAAC;AAE5B,cAAc;AACd,OAAO,sBAAsB,CAAC;AAC9B,OAAO,yBAAyB,CAAC;AACjC,gFAAgF;AAChF,wCAAwC;AACxC,gDAAgD;AAChD,oCAAoC;AAEpC,iBAAiB;AACjB,OAAO,sBAAsB,CAAC;AAC9B,OAAO,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AACpB,OAAO,6BAA6B,CAAC;AAErC,cAAc;AACd,OAAO,sBAAsB,CAAC;AAC9B,OAAO,yBAAyB,CAAC;AACjC,gFAAgF;AAChF,wCAAwC;AACxC,gDAAgD;AAChD,oCAAoC;AAEpC,iBAAiB;AACjB,OAAO,sBAAsB,CAAC;AAC9B,OAAO,iBAAiB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  import { createNameSpace } from '@_linked/core/utils/NameSpace';
2
- import { linkedOntology } from '../package.js';
3
- import * as _this from './s3.js';
4
2
  export var loadData = () => {
5
3
  //@ts-ignore
6
4
  return import('../data/s3.json', { with: { type: 'json' } }).then((data) => data.default);
@@ -30,6 +28,4 @@ export const s3 = {
30
28
  key,
31
29
  secret,
32
30
  };
33
- //Registers this ontology to LINCD.JS, so that data loading can be automated amongst other things
34
- linkedOntology(_this, ns, 's3', loadData, '../data/s3.json');
35
31
  //# sourceMappingURL=s3.js.map
@@ -1 +1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3B,MAAM,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC;AAEjC,mFAAmF;AACnF,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,UAAU;IACV,MAAM;IACN,SAAS;IACT,aAAa;IACb,SAAS;IAET,aAAa;IACb,MAAM;IACN,QAAQ;IACR,GAAG;IACH,MAAM;CACP,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Registers this ontology.
3
+ *
4
+ * Kept out of `s3.ts` because registration needs that module's whole export
5
+ * namespace, and a module cannot import itself once a bundler is involved: Rollup
6
+ * treats a static self-reference as a circular import and elides it, so the binding is
7
+ * undefined at runtime and the consuming app dies at boot with `_this is not
8
+ * defined`. `tsc` preserves it, which is why the pattern survived for as long as
9
+ * packages were built with `tsc` alone.
10
+ *
11
+ * From a sibling module the same import is ordinary and survives.
12
+ */
13
+ import * as terms from './s3.js';
14
+ import { loadData, ns } from './s3.js';
15
+ import { linkedOntology } from '../package.js';
16
+ linkedOntology(terms, ns, 's3', loadData, '../data/s3.json');
17
+ //# sourceMappingURL=s3.register.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"s3.register.js","sourceRoot":"","sources":["../../../src/ontologies/s3.register.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,EAAC,QAAQ,EAAE,EAAE,EAAC,MAAM,SAAS,CAAC;AACrC,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAE7C,cAAc,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,iBAAiB,CAAC,CAAC"}
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/linked-fw/s3.git"
13
13
  },
14
- "version": "1.4.0",
14
+ "version": "1.5.0",
15
15
  "packageManager": "npm@11.19.1",
16
16
  "linkedPackage": true,
17
17
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "aws"
39
39
  ],
40
40
  "dependencies": {
41
- "@_linked/core": "^2.21.0",
41
+ "@_linked/core": "^2.22.8",
42
42
  "@_linked/server": "^2.5.1",
43
43
  "@_linked/server-utils": "^1.0",
44
44
  "@aws-sdk/client-s3": "^3.159.0",