@flowcore/pathways 0.10.0 → 0.12.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 +98 -55
- package/README.md +128 -124
- package/esm/common/index.d.ts.map +1 -1
- package/esm/contracts/index.d.ts.map +1 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/pathways/builder.d.ts +63 -9
- package/esm/pathways/builder.d.ts.map +1 -1
- package/esm/pathways/builder.js +203 -41
- package/esm/pathways/index.d.ts.map +1 -1
- package/esm/pathways/internal-pathway.state.d.ts.map +1 -1
- package/esm/pathways/kv/bun-kv-adapter.d.ts.map +1 -1
- package/esm/pathways/kv/kv-adapter.d.ts +2 -2
- package/esm/pathways/kv/kv-adapter.d.ts.map +1 -1
- package/esm/pathways/kv/node-kv-adapter.d.ts.map +1 -1
- package/esm/pathways/kv/node-kv-adapter.js +1 -1
- package/esm/pathways/logger.js +7 -7
- package/esm/pathways/postgres/index.d.ts.map +1 -1
- package/esm/pathways/postgres/postgres-adapter.d.ts.map +1 -1
- package/esm/pathways/postgres/postgres-adapter.js +3 -2
- package/esm/pathways/session-pathway.d.ts.map +1 -1
- package/esm/pathways/session-pathway.js +3 -3
- package/esm/pathways/types.d.ts +7 -2
- package/esm/pathways/types.d.ts.map +1 -1
- package/esm/router/index.d.ts.map +1 -1
- package/esm/router/index.js +4 -4
- package/package.json +1 -1
- package/script/common/index.d.ts.map +1 -1
- package/script/contracts/index.d.ts.map +1 -1
- package/script/mod.d.ts.map +1 -1
- package/script/pathways/builder.d.ts +63 -9
- package/script/pathways/builder.d.ts.map +1 -1
- package/script/pathways/builder.js +205 -42
- package/script/pathways/index.d.ts.map +1 -1
- package/script/pathways/internal-pathway.state.d.ts.map +1 -1
- package/script/pathways/kv/bun-kv-adapter.d.ts.map +1 -1
- package/script/pathways/kv/kv-adapter.d.ts +2 -2
- package/script/pathways/kv/kv-adapter.d.ts.map +1 -1
- package/script/pathways/kv/node-kv-adapter.d.ts.map +1 -1
- package/script/pathways/kv/node-kv-adapter.js +1 -1
- package/script/pathways/logger.js +7 -7
- package/script/pathways/postgres/index.d.ts.map +1 -1
- package/script/pathways/postgres/postgres-adapter.d.ts.map +1 -1
- package/script/pathways/postgres/postgres-adapter.js +3 -2
- package/script/pathways/session-pathway.d.ts.map +1 -1
- package/script/pathways/session-pathway.js +3 -3
- package/script/pathways/types.d.ts +7 -2
- package/script/pathways/types.d.ts.map +1 -1
- package/script/router/index.d.ts.map +1 -1
- package/script/router/index.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,139 +1,182 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.
|
|
3
|
+
## [0.12.0](https://github.com/flowcore-io/flowcore-pathways/compare/v0.11.0...v0.12.0) (2025-04-15)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Features
|
|
7
7
|
|
|
8
|
-
*
|
|
9
|
-
* allow to chain handle, subscribe, onError and onAnyError ([4ac4fdb](https://github.com/flowcore-io/flowcore-pathways/commit/4ac4fdb245ede9ef6c7bcf7e79918a9744bec611))
|
|
8
|
+
* **pathways:** :sparkles: add SessionUserResolver for session-specific user resolvers ([87be987](https://github.com/flowcore-io/flowcore-pathways/commit/87be987825e6c1b465950644d8a3b9d6ed170a7d))
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
### Bug Fixes
|
|
13
12
|
|
|
14
|
-
*
|
|
13
|
+
* :rotating_light: fixed linting errors ([a4ed698](https://github.com/flowcore-io/flowcore-pathways/commit/a4ed69892ff604e8ef57e9eafae411c61ad235bb))
|
|
14
|
+
* **pathways:** :art: update SessionUser store to support unknown timeout types ([7330cbf](https://github.com/flowcore-io/flowcore-pathways/commit/7330cbfef35001bbb91b2072e6a35345549c7383))
|
|
15
|
+
* **pathways:** :bug: update session user resolvers to use enableSessionUserResolvers flag ([13623de](https://github.com/flowcore-io/flowcore-pathways/commit/13623de687db252c9ba89499d5ce3171783014ef))
|
|
15
16
|
|
|
16
|
-
## [0.
|
|
17
|
+
## [0.11.0](https://github.com/flowcore-io/flowcore-pathways/compare/v0.10.0...v0.11.0) (2025-04-14)
|
|
18
|
+
|
|
19
|
+
### Features
|
|
17
20
|
|
|
21
|
+
- batch support
|
|
22
|
+
([32b641e](https://github.com/flowcore-io/flowcore-pathways/commit/32b641e4f181d9ff747a1f0b2bab85a9aea48504))
|
|
23
|
+
- batch support
|
|
24
|
+
([4ccf19b](https://github.com/flowcore-io/flowcore-pathways/commit/4ccf19b73419589ddea56dfa13533c4e73947287))
|
|
25
|
+
|
|
26
|
+
## [0.10.0](https://github.com/flowcore-io/flowcore-pathways/compare/v0.9.1...v0.10.0) (2025-04-09)
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
- allow to chain handle, subscribe, onError and onAnyError
|
|
31
|
+
([a560142](https://github.com/flowcore-io/flowcore-pathways/commit/a560142b940c61626a69d41b6c64dcad7947c957))
|
|
32
|
+
- allow to chain handle, subscribe, onError and onAnyError
|
|
33
|
+
([4ac4fdb](https://github.com/flowcore-io/flowcore-pathways/commit/4ac4fdb245ede9ef6c7bcf7e79918a9744bec611))
|
|
18
34
|
|
|
19
35
|
### Bug Fixes
|
|
20
36
|
|
|
21
|
-
|
|
37
|
+
- only create table if it doesn't exist
|
|
38
|
+
([828d584](https://github.com/flowcore-io/flowcore-pathways/commit/828d58499067d6a46fa6e293b0c4eac67be840c7))
|
|
22
39
|
|
|
23
|
-
## [0.9.
|
|
40
|
+
## [0.9.1](https://github.com/flowcore-io/flowcore-pathways/compare/v0.9.0...v0.9.1) (2025-04-08)
|
|
24
41
|
|
|
42
|
+
### Bug Fixes
|
|
25
43
|
|
|
26
|
-
|
|
44
|
+
- force bun-sqlite-key-value only as optional dependency
|
|
45
|
+
([c8a4ce5](https://github.com/flowcore-io/flowcore-pathways/commit/c8a4ce523def84e33c8986da04b758ab0b45ac17))
|
|
27
46
|
|
|
28
|
-
|
|
47
|
+
## [0.9.0](https://github.com/flowcore-io/flowcore-pathways/compare/v0.8.0...v0.9.0) (2025-03-18)
|
|
29
48
|
|
|
49
|
+
### Features
|
|
50
|
+
|
|
51
|
+
- **pathways:** :sparkles: Introduce Session Pathways for session management
|
|
52
|
+
([5ad1f1d](https://github.com/flowcore-io/flowcore-pathways/commit/5ad1f1d706dcfb4ba517c38a2748274d43762cb6))
|
|
30
53
|
|
|
31
54
|
### Bug Fixes
|
|
32
55
|
|
|
33
|
-
|
|
56
|
+
- **pathways:** :art: Change import of KvAdapter to type import
|
|
57
|
+
([732da2d](https://github.com/flowcore-io/flowcore-pathways/commit/732da2d191b87781b2be3adf9efa150e2eaab3ef))
|
|
34
58
|
|
|
35
59
|
## [0.8.0](https://github.com/flowcore-io/flowcore-pathways/compare/v0.7.0...v0.8.0) (2025-03-18)
|
|
36
60
|
|
|
37
|
-
|
|
38
61
|
### Features
|
|
39
62
|
|
|
40
|
-
|
|
63
|
+
- **pathways:** :sparkles: Add session-specific user resolver functionality
|
|
64
|
+
([0e0c074](https://github.com/flowcore-io/flowcore-pathways/commit/0e0c074b451b15d3a83ea49f0d838ed559306290))
|
|
41
65
|
|
|
42
66
|
## [0.7.0](https://github.com/flowcore-io/flowcore-pathways/compare/v0.6.0...v0.7.0) (2025-03-18)
|
|
43
67
|
|
|
44
|
-
|
|
45
68
|
### Features
|
|
46
69
|
|
|
47
|
-
|
|
70
|
+
- **pathways:** :sparkles: Add cloning functionality to PathwaysBuilder
|
|
71
|
+
([674c72a](https://github.com/flowcore-io/flowcore-pathways/commit/674c72a085c9e8805d127ebd2ae70c0279d990e4))
|
|
48
72
|
|
|
49
73
|
## [0.6.0](https://github.com/flowcore-io/flowcore-pathways/compare/v0.5.0...v0.6.0) (2025-03-18)
|
|
50
74
|
|
|
51
|
-
|
|
52
75
|
### Features
|
|
53
76
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
77
|
+
- **pathways:** :sparkles: Add auditMode option to PathwayWriteOptions
|
|
78
|
+
([f2db7f3](https://github.com/flowcore-io/flowcore-pathways/commit/f2db7f34382ccb618c24d54af74294b3d005dca3))
|
|
79
|
+
- **pathways:** :sparkles: Add user ID resolver configuration to PathwaysBuilder
|
|
80
|
+
([9faef35](https://github.com/flowcore-io/flowcore-pathways/commit/9faef35a76764b9419938ac8d372fbbaa4438a23))
|
|
57
81
|
|
|
58
82
|
### Bug Fixes
|
|
59
83
|
|
|
60
|
-
|
|
84
|
+
- **pathways:** :art: Refactor audit handler to use user resolver method
|
|
85
|
+
([a63e673](https://github.com/flowcore-io/flowcore-pathways/commit/a63e673fb3c0718ce9eb1f3491b41d800d85dee3))
|
|
61
86
|
|
|
62
87
|
## [0.5.0](https://github.com/flowcore-io/flowcore-pathways/compare/v0.4.0...v0.5.0) (2025-03-17)
|
|
63
88
|
|
|
64
|
-
|
|
65
89
|
### Features
|
|
66
90
|
|
|
67
|
-
|
|
91
|
+
- **pathways:** :sparkles: Add event payload validation and improve handler typings
|
|
92
|
+
([228e262](https://github.com/flowcore-io/flowcore-pathways/commit/228e262527a9e1d26aaa68f959480b3a3d2ef70e))
|
|
68
93
|
|
|
69
94
|
## [0.4.0](https://github.com/flowcore-io/flowcore-pathways/compare/v0.3.0...v0.4.0) (2025-03-15)
|
|
70
95
|
|
|
71
|
-
|
|
72
96
|
### Features
|
|
73
97
|
|
|
74
|
-
|
|
98
|
+
- **postgres:** :sparkles: Add support for connection string and individual parameters in PostgreSQL configuration
|
|
99
|
+
([881fba2](https://github.com/flowcore-io/flowcore-pathways/commit/881fba26485349a3d4253cdb112928b9a9c31996))
|
|
75
100
|
|
|
76
101
|
## [0.3.0](https://github.com/flowcore-io/flowcore-pathways/compare/v0.2.4...v0.3.0) (2025-03-15)
|
|
77
102
|
|
|
78
|
-
|
|
79
103
|
### Features
|
|
80
104
|
|
|
81
|
-
|
|
105
|
+
- **postgres:** :sparkles: Enhance PostgreSQL configuration with connection string support
|
|
106
|
+
([9b51155](https://github.com/flowcore-io/flowcore-pathways/commit/9b51155eaa8f11c5ca3e8f6422d2b4268c4f27ea))
|
|
82
107
|
|
|
83
108
|
## [0.2.4](https://github.com/flowcore-io/flowcore-pathways/compare/v0.2.3...v0.2.4) (2025-03-15)
|
|
84
109
|
|
|
85
|
-
|
|
86
110
|
### Bug Fixes
|
|
87
111
|
|
|
88
|
-
|
|
112
|
+
- **logger:** :art: Update error method signatures and improve JSDoc documentation
|
|
113
|
+
([07ab772](https://github.com/flowcore-io/flowcore-pathways/commit/07ab77237c7aa88f6bc5999ff95148873c2e45d0))
|
|
89
114
|
|
|
90
115
|
## [0.2.3](https://github.com/flowcore-io/flowcore-pathways/compare/v0.2.2...v0.2.3) (2025-03-15)
|
|
91
116
|
|
|
92
|
-
|
|
93
117
|
### Bug Fixes
|
|
94
118
|
|
|
95
|
-
|
|
119
|
+
- **dependencies:** :art: Update deno.lock with new package versions and metadata
|
|
120
|
+
([62d85f5](https://github.com/flowcore-io/flowcore-pathways/commit/62d85f56a05c49fdc43c66781901197868e0dc29))
|
|
96
121
|
|
|
97
122
|
## [0.2.2](https://github.com/flowcore-io/flowcore-pathways/compare/v0.2.1...v0.2.2) (2025-03-15)
|
|
98
123
|
|
|
99
|
-
|
|
100
124
|
### Bug Fixes
|
|
101
125
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
126
|
+
- **deno.json:** :memo: Update library description to specify TypeScript
|
|
127
|
+
([014f1fc](https://github.com/flowcore-io/flowcore-pathways/commit/014f1fc88d5e5545dd92ff78fa0aae86a9aceebb))
|
|
128
|
+
- **mod:** :memo: Add module declaration comments to pathways and mod files
|
|
129
|
+
([275f41a](https://github.com/flowcore-io/flowcore-pathways/commit/275f41ac9d75b2f2509ddf78ddbd31fc8cd3914a))
|
|
130
|
+
- **types:** :memo: Add module declaration comments and improve JSDoc formatting
|
|
131
|
+
([21781f2](https://github.com/flowcore-io/flowcore-pathways/commit/21781f2ab8b8064935d831dfc9f2965f703af343))
|
|
105
132
|
|
|
106
133
|
## [0.2.1](https://github.com/flowcore-io/flowcore-pathways/compare/v0.2.0...v0.2.1) (2025-03-15)
|
|
107
134
|
|
|
108
|
-
|
|
109
135
|
### Bug Fixes
|
|
110
136
|
|
|
111
|
-
|
|
137
|
+
- **dependencies:** :art: Update package versions in deno.lock and import statements
|
|
138
|
+
([e47298e](https://github.com/flowcore-io/flowcore-pathways/commit/e47298e565743ebc7381d7d9683ddc7f33b98bf0))
|
|
112
139
|
|
|
113
140
|
## [0.2.0](https://github.com/flowcore-io/flowcore-pathways/compare/v0.1.0...v0.2.0) (2025-03-15)
|
|
114
141
|
|
|
115
|
-
|
|
116
142
|
### Features
|
|
117
143
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
144
|
+
- :sparkles: Add support for file-based pathways and multi-event writes
|
|
145
|
+
([e9d9bcc](https://github.com/flowcore-io/flowcore-pathways/commit/e9d9bcc8d4f6ff8959f99760c736671ba422e4a5))
|
|
146
|
+
- :sparkles: Allow non-async pathway handlers in PathwaysBuilder
|
|
147
|
+
([4313e63](https://github.com/flowcore-io/flowcore-pathways/commit/4313e635c04a6bd9a395f9df782482a0c18d0f37))
|
|
148
|
+
- :sparkles: Enhance PathwaysBuilder with improved type safety and writable pathway support
|
|
149
|
+
([a2c1c36](https://github.com/flowcore-io/flowcore-pathways/commit/a2c1c36aa5537be2aeec9b8e7bb744ed9a1243a8))
|
|
150
|
+
- :sparkles: Initialize core Flowcore Pathways library with essential components
|
|
151
|
+
([dfa32f1](https://github.com/flowcore-io/flowcore-pathways/commit/dfa32f1601b1c6851d87fb749fd9688b13fe398e))
|
|
152
|
+
- Add pathway state management with key-value storage support
|
|
153
|
+
([c717a2e](https://github.com/flowcore-io/flowcore-pathways/commit/c717a2e3757445cfb52b580c0ca67c746a16a622))
|
|
154
|
+
- **pathways:** :sparkles: Add audit functionality to PathwaysBuilder
|
|
155
|
+
([bdc68fe](https://github.com/flowcore-io/flowcore-pathways/commit/bdc68fe36d49c8b1827d63ee686f15afd76769bb))
|
|
156
|
+
- **pathways:** :sparkles: Implement error handling and retry mechanism in PathwaysBuilder
|
|
157
|
+
([5300036](https://github.com/flowcore-io/flowcore-pathways/commit/5300036370ce573a06dac65fc5b0fdf1ee9f3ffd))
|
|
158
|
+
- **pathways:** :sparkles: Introduce logging functionality in PathwaysBuilder
|
|
159
|
+
([9cef56a](https://github.com/flowcore-io/flowcore-pathways/commit/9cef56a8111336d2cfd26e72edbc01784cc0ef1a))
|
|
160
|
+
- **postgres:** :sparkles: Integrate PostgreSQL support for pathway state management
|
|
161
|
+
([710ab3f](https://github.com/flowcore-io/flowcore-pathways/commit/710ab3f24e4865f5259f773a73cbae12fe3f8795))
|
|
162
|
+
- **router:** :sparkles: Add secret key validation for PathwayRouter
|
|
163
|
+
([3a6a70a](https://github.com/flowcore-io/flowcore-pathways/commit/3a6a70a194ac8589ea6cc56cae741f2902befcf0))
|
|
164
|
+
- **tests:** :sparkles: Add comprehensive tests for pathways and router functionality
|
|
165
|
+
([ae032fd](https://github.com/flowcore-io/flowcore-pathways/commit/ae032fdec6c2f9c58c95dd1153c951d0d9915b2c))
|
|
130
166
|
|
|
131
167
|
### Bug Fixes
|
|
132
168
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
169
|
+
- **deno.json:** :art: Update test commands to remove unstable flag
|
|
170
|
+
([7fb6dd2](https://github.com/flowcore-io/flowcore-pathways/commit/7fb6dd22e4cf7f778725fb53a84b0f3ab222fa0a))
|
|
171
|
+
- **deno.lock:** :wrench: Fixed the npm building by updating the imports to be consisten
|
|
172
|
+
([5700b20](https://github.com/flowcore-io/flowcore-pathways/commit/5700b20ee2b93dca88ce3d4cc3d826ffe6db2cc4))
|
|
173
|
+
- **readme:** :fire: Remove Example Projects section from README
|
|
174
|
+
([bd27270](https://github.com/flowcore-io/flowcore-pathways/commit/bd27270ae0f80c46074def5ef3a08410677ebb68))
|
|
175
|
+
- **readme:** :memo: Update library description and installation instructions in README
|
|
176
|
+
([cbd3d33](https://github.com/flowcore-io/flowcore-pathways/commit/cbd3d330a8e6809c9cbb1bc8582598d3cd1992d5))
|
|
177
|
+
- **readme:** :memo: Update README with detailed usage examples and core concepts
|
|
178
|
+
([5e26e9b](https://github.com/flowcore-io/flowcore-pathways/commit/5e26e9b8f2b06c56e0c65dbce09d6c7e2fe36edd))
|
|
179
|
+
- **router:** :bug: Improve error handling in PathwayRouter processing
|
|
180
|
+
([56a00eb](https://github.com/flowcore-io/flowcore-pathways/commit/56a00eb9c9d8b056b40398eb40c213fd876e4226))
|
|
181
|
+
- **router:** :bug: Update processEvent method to include return type
|
|
182
|
+
([af5b821](https://github.com/flowcore-io/flowcore-pathways/commit/af5b821187404d72c1566f2ebdb9c7fbcbb0bb3b))
|