@loipv/nestjs-cache 0.0.0-stage → 1.0.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/package.json CHANGED
@@ -1,6 +1,133 @@
1
1
  {
2
2
  "name": "@loipv/nestjs-cache",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Decorator-based caching for NestJS: Redis (ioredis or node-redis, Cluster, Sentinel) and two-tier stores, tags, stale-while-revalidate, stampede protection, HTTP caching and Prometheus metrics",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/loipv/nestjs-cache.git"
9
+ },
10
+ "homepage": "https://github.com/loipv/nestjs-cache#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/loipv/nestjs-cache/issues"
13
+ },
14
+ "type": "module",
15
+ "main": "./dist/index.cjs",
16
+ "module": "./dist/index.js",
17
+ "types": "./dist/index.d.ts",
18
+ "exports": {
19
+ ".": {
20
+ "import": {
21
+ "types": "./dist/index.d.ts",
22
+ "default": "./dist/index.js"
23
+ },
24
+ "require": {
25
+ "types": "./dist/index.d.cts",
26
+ "default": "./dist/index.cjs"
27
+ }
28
+ },
29
+ "./package.json": "./package.json"
30
+ },
31
+ "files": [
32
+ "dist",
33
+ "CHANGELOG.md"
34
+ ],
35
+ "sideEffects": false,
36
+ "engines": {
37
+ "node": ">=22"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "keywords": [
43
+ "nestjs",
44
+ "cache",
45
+ "redis",
46
+ "decorator",
47
+ "two-tier",
48
+ "swr",
49
+ "circuit-breaker",
50
+ "distributed-lock",
51
+ "nest",
52
+ "caching",
53
+ "ioredis",
54
+ "node-redis",
55
+ "redis-cluster",
56
+ "redis-sentinel",
57
+ "stale-while-revalidate",
58
+ "cache-tags",
59
+ "http-cache",
60
+ "tiered-cache",
61
+ "stampede",
62
+ "single-flight",
63
+ "prometheus",
64
+ "typescript"
65
+ ],
66
+ "scripts": {
67
+ "build": "tsup",
68
+ "typecheck": "tsc --noEmit",
69
+ "typecheck:min": "node scripts/typecheck-min.mjs",
70
+ "lint": "eslint . && prettier --check .",
71
+ "format": "prettier --write .",
72
+ "test": "vitest run --project unit --project unit-traced",
73
+ "test:cov": "vitest run --project unit --coverage",
74
+ "test:integration": "vitest run --project integration",
75
+ "test:consumers": "node scripts/test-consumers.mjs",
76
+ "check:pack": "node scripts/check-pack.mjs",
77
+ "check:pkg": "publint && attw --pack .",
78
+ "check:workflows": "node scripts/check-workflows.mjs",
79
+ "example:check": "node scripts/example-check.mjs",
80
+ "docs:check": "node scripts/check-docs.mjs",
81
+ "docs:coverage": "node scripts/check-docs-coverage.mjs",
82
+ "changeset": "changeset",
83
+ "version-packages": "changeset version && npm install --package-lock-only --ignore-scripts",
84
+ "prepublishOnly": "npm run build && npm run check:pack && npm run check:pkg && npm run typecheck && npm test"
85
+ },
86
+ "peerDependencies": {
87
+ "@nestjs/common": "^11.0.0 || ^12.0.0",
88
+ "@nestjs/core": "^11.0.0 || ^12.0.0",
89
+ "ioredis": "^5.0.0 || ^6.0.0",
90
+ "redis": "^5.0.0 || ^6.0.0",
91
+ "reflect-metadata": "^0.2.0",
92
+ "rxjs": "^7.1.0"
93
+ },
94
+ "peerDependenciesMeta": {
95
+ "ioredis": {
96
+ "optional": true
97
+ },
98
+ "redis": {
99
+ "optional": true
100
+ }
101
+ },
102
+ "devDependencies": {
103
+ "@arethetypeswrong/cli": "^0.18.5",
104
+ "@changesets/changelog-github": "^1.0.1",
105
+ "@changesets/cli": "^3.0.3",
106
+ "@nestjs/common": "^12.4.2",
107
+ "@nestjs/core": "^12.4.2",
108
+ "@nestjs/platform-express": "^12.4.2",
109
+ "@nestjs/platform-fastify": "^12.4.2",
110
+ "@nestjs/terminus": "^12.1.0",
111
+ "@nestjs/testing": "^12.4.2",
112
+ "@opentelemetry/api": "^1.9.1",
113
+ "@opentelemetry/context-async-hooks": "^3.1.1",
114
+ "@opentelemetry/sdk-trace-base": "^2.12.1",
115
+ "@prometheus-io/client": "^0.16.1",
116
+ "@testcontainers/redis": "^12.2.1",
117
+ "@types/node": "^24.19.2",
118
+ "@vitest/coverage-v8": "^5.1.0",
119
+ "eslint": "^10.14.0",
120
+ "ioredis": "^6.0.0",
121
+ "prettier": "^3.9.10",
122
+ "prom-client": "^15.1.3",
123
+ "publint": "^0.3.25",
124
+ "redis": "^6.3.1",
125
+ "reflect-metadata": "^0.2.2",
126
+ "rxjs": "^7.8.2",
127
+ "testcontainers": "^12.2.1",
128
+ "tsup": "^9.0.0",
129
+ "typescript": "^6.0.3",
130
+ "typescript-eslint": "^8.72.2",
131
+ "vitest": "^5.1.0"
132
+ }
133
+ }