@haatlabs-core/announcements 0.27.2 → 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.
Files changed (2) hide show
  1. package/README.md +9 -1
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -4,6 +4,14 @@ Announcements (the alert bar across every surface of an app, optionally notified
4
4
  maintenance (every surface but admin answers 503 while a window is open), for NestJS apps on the
5
5
  Haatlabs platform. Written in each app's own admin by platform administrators; per app.
6
6
 
7
+ ## Install
8
+
9
+ ```sh
10
+ pnpm add @haatlabs-core/announcements
11
+ ```
12
+
13
+ With the platform's sign-in, `@haatlabs-core/nest-auth` too (an optional peer, for `@haatlabs-core/announcements/nest-auth`).
14
+
7
15
  ## Wiring an app
8
16
 
9
17
  1. **Tables.** Build them from `@haatlabs-core/db-core` and generate the migration, as the starter
@@ -33,7 +41,7 @@ Haatlabs platform. Written in each app's own admin by platform administrators; p
33
41
  inject: [SYSTEM_DB],
34
42
  },
35
43
  redis: { useFactory: (redis: Redis) => redis, inject: [REDIS] },
36
- keyPrefix: 'catalogpix',
44
+ keyPrefix: 'myapp',
37
45
  audience: {
38
46
  useFactory: (db: DatabaseHandle) =>
39
47
  new SystemAudience(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haatlabs-core/announcements",
3
- "version": "0.27.2",
3
+ "version": "1.0.0",
4
4
  "description": "Announcements (an alert bar, optionally notified) and app-layer maintenance for NestJS apps.",
5
5
  "keywords": [
6
6
  "haatlabs",
@@ -86,18 +86,18 @@
86
86
  "rxjs": "^7.8.2",
87
87
  "testcontainers": "^12.2.0",
88
88
  "zod": "^4.6.5",
89
- "@haatlabs-core/vitest-config": "0.27.2",
90
- "@haatlabs-core/nest-billing": "0.27.2",
91
- "@haatlabs-core/tsconfig": "0.27.2",
92
- "@haatlabs-core/nest-auth": "0.27.2"
89
+ "@haatlabs-core/nest-billing": "1.0.0",
90
+ "@haatlabs-core/tsconfig": "1.0.0",
91
+ "@haatlabs-core/nest-auth": "1.0.0",
92
+ "@haatlabs-core/vitest-config": "1.0.0"
93
93
  },
94
94
  "dependencies": {
95
95
  "drizzle-orm": "^0.45.3",
96
96
  "ioredis": "^6.0.0",
97
- "@haatlabs-core/announcements-contracts": "0.27.2",
98
- "@haatlabs-core/db-core": "0.27.2",
99
- "@haatlabs-core/errors": "0.27.2",
100
- "@haatlabs-core/nest-common": "0.27.2"
97
+ "@haatlabs-core/announcements-contracts": "1.0.0",
98
+ "@haatlabs-core/nest-common": "1.0.0",
99
+ "@haatlabs-core/db-core": "1.0.0",
100
+ "@haatlabs-core/errors": "1.0.0"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "@nestjs/common": "^12.1.2",
@@ -105,7 +105,7 @@
105
105
  "reflect-metadata": "^0.2.2",
106
106
  "rxjs": "^7.8.2",
107
107
  "zod": "^4.6.5",
108
- "@haatlabs-core/nest-auth": "^0.27.2"
108
+ "@haatlabs-core/nest-auth": "^1.0.0"
109
109
  },
110
110
  "peerDependenciesMeta": {
111
111
  "@haatlabs-core/nest-auth": {