@geekmidas/events 1.1.2 → 1.1.5

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,45 @@
1
1
  # @geekmidas/events
2
2
 
3
+ ## 1.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - ✨ [#8](https://github.com/geekmidas/toolbox/pull/8) [`03b08fe`](https://github.com/geekmidas/toolbox/commit/03b08feba2e735539c43f95b77792c18a627b07d) Thanks [@geekmidas](https://github.com/geekmidas)! - refactor(manifest): model the unified `gkm build` manifest and add `QueueInfo`
8
+
9
+ `gkm build` emits a single TypeScript module per provider
10
+ (`export const manifest = { routes, functions, crons, subscribers } as const`),
11
+ not separate JSON files. `@geekmidas/manifest` now models that:
12
+ - a unified `Manifest` type plus `ManifestField<T>` (a field is a flat
13
+ `readonly T[]` or a partitioned `Record<string, readonly T[]>`) and a
14
+ `flattenManifestField` helper;
15
+ - the item types (`RouteInfo`/`FunctionInfo`/`CronInfo`/`SubscriberInfo`) gain a
16
+ new `QueueInfo`, `SubscriberInfo.transport`, and readonly array fields so the
17
+ `as const` manifest assigns cleanly;
18
+ - 🔥 the per-unit `*Manifest` wrapper types are removed.
19
+
20
+ `@geekmidas/cloud/sst`'s `Api`/`Function`/`Cron` `fromManifest` now take the
21
+ manifest **field** (`Api.fromManifest(stack, id, manifest.routes, …)`) and
22
+ flatten the flat-or-partitioned shape. `@geekmidas/cli` re-exports the updated
23
+ types.
24
+
25
+ Also fixes `@geekmidas/events` to externalise `pg-boss` (it was the one
26
+ transport dep being bundled).
27
+
28
+ ## 1.1.4
29
+
30
+ ### Patch Changes
31
+
32
+ - 🐛 [`75954ab`](https://github.com/geekmidas/toolbox/commit/75954ab60413ecba60b24aad7f9e0a08f29863dd) Thanks [@geekmidas](https://github.com/geekmidas)! - Republish with the `package.json` exports fix that nests `types` inside each `import`/`require` condition and points at the `.d.mts`/`.d.cts` files that `tsdown` actually emits. The previous version (1.1.3) was tagged but failed to publish to npm; this bump retries publication so consumers can resolve types correctly under NodeNext/Bundler module resolution.
33
+
34
+ ## 1.1.3
35
+
36
+ ### Patch Changes
37
+
38
+ - 🐛 [`d70c6c0`](https://github.com/geekmidas/toolbox/commit/d70c6c0aeb8a79da2473ac77dbd8255a4a2f5651) Thanks [@geekmidas](https://github.com/geekmidas)! - Fix `package.json` exports so TypeScript declarations resolve correctly under NodeNext/Bundler module resolution. Each subpath export now nests `types` inside its `import`/`require` condition, pointing at the `.d.mts` and `.d.cts` files that `tsdown` actually emits (previously the exports referenced non-existent `.d.ts` files, causing type-resolution failures for consumers). Both ESM (`.mjs`) and CJS (`.cjs`) runtime entry points are preserved. Additionally, `@geekmidas/ui` had `import` paths pointing at `.js` files that were never emitted — those are corrected to `.mjs`.
39
+
40
+ - Updated dependencies [[`d70c6c0`](https://github.com/geekmidas/toolbox/commit/d70c6c0aeb8a79da2473ac77dbd8255a4a2f5651)]:
41
+ - @geekmidas/schema@1.0.2
42
+
3
43
  ## 1.1.2
4
44
 
5
45
  ### Patch Changes
package/package.json CHANGED
@@ -1,37 +1,67 @@
1
1
  {
2
2
  "name": "@geekmidas/events",
3
- "version": "1.1.2",
3
+ "version": "1.1.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
7
- "types": "./dist/index.d.ts",
8
- "import": "./dist/index.mjs",
9
- "require": "./dist/index.cjs"
7
+ "import": {
8
+ "types": "./dist/index.d.mts",
9
+ "default": "./dist/index.mjs"
10
+ },
11
+ "require": {
12
+ "types": "./dist/index.d.cts",
13
+ "default": "./dist/index.cjs"
14
+ }
10
15
  },
11
16
  "./basic": {
12
- "types": "./dist/basic/index.d.ts",
13
- "import": "./dist/basic/index.mjs",
14
- "require": "./dist/basic/index.cjs"
17
+ "import": {
18
+ "types": "./dist/basic/index.d.mts",
19
+ "default": "./dist/basic/index.mjs"
20
+ },
21
+ "require": {
22
+ "types": "./dist/basic/index.d.cts",
23
+ "default": "./dist/basic/index.cjs"
24
+ }
15
25
  },
16
26
  "./rabbitmq": {
17
- "types": "./dist/rabbitmq/index.d.ts",
18
- "import": "./dist/rabbitmq/index.mjs",
19
- "require": "./dist/rabbitmq/index.cjs"
27
+ "import": {
28
+ "types": "./dist/rabbitmq/index.d.mts",
29
+ "default": "./dist/rabbitmq/index.mjs"
30
+ },
31
+ "require": {
32
+ "types": "./dist/rabbitmq/index.d.cts",
33
+ "default": "./dist/rabbitmq/index.cjs"
34
+ }
20
35
  },
21
36
  "./sqs": {
22
- "types": "./dist/sqs/index.d.ts",
23
- "import": "./dist/sqs/index.mjs",
24
- "require": "./dist/sqs/index.cjs"
37
+ "import": {
38
+ "types": "./dist/sqs/index.d.mts",
39
+ "default": "./dist/sqs/index.mjs"
40
+ },
41
+ "require": {
42
+ "types": "./dist/sqs/index.d.cts",
43
+ "default": "./dist/sqs/index.cjs"
44
+ }
25
45
  },
26
46
  "./sns": {
27
- "types": "./dist/sns/index.d.ts",
28
- "import": "./dist/sns/index.mjs",
29
- "require": "./dist/sns/index.cjs"
47
+ "import": {
48
+ "types": "./dist/sns/index.d.mts",
49
+ "default": "./dist/sns/index.mjs"
50
+ },
51
+ "require": {
52
+ "types": "./dist/sns/index.d.cts",
53
+ "default": "./dist/sns/index.cjs"
54
+ }
30
55
  },
31
56
  "./pgboss": {
32
- "types": "./dist/pgboss/index.d.ts",
33
- "import": "./dist/pgboss/index.mjs",
34
- "require": "./dist/pgboss/index.cjs"
57
+ "import": {
58
+ "types": "./dist/pgboss/index.d.mts",
59
+ "default": "./dist/pgboss/index.mjs"
60
+ },
61
+ "require": {
62
+ "types": "./dist/pgboss/index.d.cts",
63
+ "default": "./dist/pgboss/index.cjs"
64
+ }
35
65
  }
36
66
  },
37
67
  "repository": {
@@ -50,7 +80,7 @@
50
80
  "@aws-sdk/client-sqs": "~3.908.0",
51
81
  "@aws-sdk/client-sns": "~3.908.0",
52
82
  "pg-boss": ">=12.0.0",
53
- "@geekmidas/schema": "^1.0.1"
83
+ "@geekmidas/schema": "^1.0.3"
54
84
  },
55
85
  "peerDependenciesMeta": {
56
86
  "@geekmidas/schema": {
@@ -75,6 +105,6 @@
75
105
  "@types/pg": "~8.15.6",
76
106
  "pg": "~8.20.0",
77
107
  "pg-boss": "~12.18.1",
78
- "@geekmidas/schema": "^1.0.1"
108
+ "@geekmidas/schema": "^1.0.3"
79
109
  }
80
110
  }
package/tsdown.config.ts CHANGED
@@ -1,5 +1,10 @@
1
1
  import { defineConfig } from 'tsdown';
2
2
 
3
3
  export default defineConfig({
4
- external: ['amqplib', '@aws-sdk/client-sqs', '@aws-sdk/client-sns'],
4
+ external: [
5
+ 'amqplib',
6
+ '@aws-sdk/client-sqs',
7
+ '@aws-sdk/client-sns',
8
+ 'pg-boss',
9
+ ],
5
10
  });