@b4moss/ss-cachian 0.7.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Bicycle for Mind LLC.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # @b4moss/ss-cachian (Node.js)
2
+
3
+ TypeScript / JavaScript port of [ss-cachian](https://github.com/b4moss/ss-cachian).
4
+
5
+ > **Status:** package scaffold for npm release path. Cache Type API is not implemented yet.
6
+ > Go PoC is complete at `go/sscachian` (**v0.7.0**). Specs: [docs/specs](../../docs/specs/).
7
+
8
+ ## Install (after first publish)
9
+
10
+ ```bash
11
+ npm install @b4moss/ss-cachian
12
+ ```
13
+
14
+ ## Develop
15
+
16
+ ```bash
17
+ cd node/sscachian
18
+ npm ci
19
+ npm run lint
20
+ npm test
21
+ npm run build
22
+ ```
23
+
24
+ ## Publish
25
+
26
+ Tags `v*` on `main` trigger `.github/workflows/npm-publish.yml` (`npm publish`).
27
+ Version is taken from the tag (`v0.8.0` → `0.8.0`). Requires repo secret `NPM_TOKEN` (npm Granular Access Token).
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Placeholder entry for the Node.js / TypeScript port.
3
+ * Semantics follow the Go package at go/sscachian (v0.7.0 PoC).
4
+ */
5
+ export declare const SSCACHIAN_RUNTIME: "node";
6
+ export declare function placeholder(): string;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAG,MAAe,CAAC;AAEjD,wBAAgB,WAAW,IAAI,MAAM,CAEpC"}
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Placeholder entry for the Node.js / TypeScript port.
3
+ * Semantics follow the Go package at go/sscachian (v0.7.0 PoC).
4
+ */
5
+ export const SSCACHIAN_RUNTIME = "node";
6
+ export function placeholder() {
7
+ return "ss-cachian node port — not yet implemented";
8
+ }
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAe,CAAC;AAEjD,MAAM,UAAU,WAAW;IACzB,OAAO,4CAA4C,CAAC;AACtD,CAAC"}
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@b4moss/ss-cachian",
3
+ "version": "0.7.0",
4
+ "description": "Server-side cache strategy library (TypeScript/JavaScript). Go PoC is complete; Node port is in progress.",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "!dist/**/*.test.js",
17
+ "!dist/**/*.test.js.map",
18
+ "!dist/**/*.test.d.ts",
19
+ "!dist/**/*.test.d.ts.map",
20
+ "README.md",
21
+ "LICENSE"
22
+ ],
23
+ "scripts": {
24
+ "build": "tsc -p tsconfig.json",
25
+ "lint": "tsc -p tsconfig.json --noEmit",
26
+ "test": "npm run build && node --test dist/**/*.test.js",
27
+ "prepublishOnly": "npm run build"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/b4moss/ss-cachian.git",
32
+ "directory": "node/sscachian"
33
+ },
34
+ "bugs": {
35
+ "url": "https://github.com/b4moss/ss-cachian/issues"
36
+ },
37
+ "homepage": "https://github.com/b4moss/ss-cachian#readme",
38
+ "license": "MIT",
39
+ "publishConfig": {
40
+ "access": "public",
41
+ "registry": "https://registry.npmjs.org/"
42
+ },
43
+ "engines": {
44
+ "node": ">=20"
45
+ },
46
+ "keywords": [
47
+ "cache",
48
+ "ss-cachian",
49
+ "versioned-cache"
50
+ ],
51
+ "devDependencies": {
52
+ "@types/node": "^22.13.10",
53
+ "typescript": "^5.8.2"
54
+ }
55
+ }