@nymphjs/pubsub 1.0.0-beta.5 → 1.0.0-beta.50

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
@@ -3,6 +3,220 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-beta.50](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.49...v1.0.0-beta.50) (2024-04-08)
7
+
8
+ **Note:** Version bump only for package @nymphjs/pubsub
9
+
10
+ # [1.0.0-beta.49](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.48...v1.0.0-beta.49) (2024-03-04)
11
+
12
+ **Note:** Version bump only for package @nymphjs/pubsub
13
+
14
+ # [1.0.0-beta.48](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.47...v1.0.0-beta.48) (2023-11-10)
15
+
16
+ **Note:** Version bump only for package @nymphjs/pubsub
17
+
18
+ # [1.0.0-beta.47](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.46...v1.0.0-beta.47) (2023-11-10)
19
+
20
+ **Note:** Version bump only for package @nymphjs/pubsub
21
+
22
+ # [1.0.0-beta.46](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.45...v1.0.0-beta.46) (2023-08-29)
23
+
24
+ ### Bug Fixes
25
+
26
+ - make the name even much more correct this time ([8d0b381](https://github.com/sciactive/nymphjs/commit/8d0b3817925ce9b1de21d2f9248f6cdec0f7d3f0))
27
+
28
+ # [1.0.0-beta.45](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.44...v1.0.0-beta.45) (2023-07-17)
29
+
30
+ ### Bug Fixes
31
+
32
+ - missing pubsub updates when new top level match uses qref with multiple results ([6dc26e2](https://github.com/sciactive/nymphjs/commit/6dc26e280453794ea9ce6c2b77482f85eb62bd23))
33
+
34
+ # [1.0.0-beta.44](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.43...v1.0.0-beta.44) (2023-07-13)
35
+
36
+ **Note:** Version bump only for package @nymphjs/pubsub
37
+
38
+ # [1.0.0-beta.43](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2023-07-12)
39
+
40
+ **Note:** Version bump only for package @nymphjs/pubsub
41
+
42
+ # [1.0.0-beta.42](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.41...v1.0.0-beta.42) (2023-07-12)
43
+
44
+ ### Features
45
+
46
+ - make fillSession async so that gatekeeper can be sync ([fb6def4](https://github.com/sciactive/nymphjs/commit/fb6def45cd031516c9bcd3438f905e2ff881707b))
47
+
48
+ # [1.0.0-beta.41](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.40...v1.0.0-beta.41) (2023-07-12)
49
+
50
+ ### Features
51
+
52
+ - remove synchronous database queries ([b579fb2](https://github.com/sciactive/nymphjs/commit/b579fb2eacd96cdd1b386a62c5c00cdbb2438f6e))
53
+
54
+ # [1.0.0-beta.40](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.39...v1.0.0-beta.40) (2023-07-10)
55
+
56
+ **Note:** Version bump only for package @nymphjs/pubsub
57
+
58
+ # [1.0.0-beta.39](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.38...v1.0.0-beta.39) (2023-07-09)
59
+
60
+ **Note:** Version bump only for package @nymphjs/pubsub
61
+
62
+ # [1.0.0-beta.38](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.37...v1.0.0-beta.38) (2023-07-09)
63
+
64
+ **Note:** Version bump only for package @nymphjs/pubsub
65
+
66
+ # [1.0.0-beta.37](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.36...v1.0.0-beta.37) (2023-07-09)
67
+
68
+ **Note:** Version bump only for package @nymphjs/pubsub
69
+
70
+ # [1.0.0-beta.36](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.35...v1.0.0-beta.36) (2023-07-09)
71
+
72
+ **Note:** Version bump only for package @nymphjs/pubsub
73
+
74
+ # [1.0.0-beta.35](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.34...v1.0.0-beta.35) (2023-06-14)
75
+
76
+ **Note:** Version bump only for package @nymphjs/pubsub
77
+
78
+ # [1.0.0-beta.34](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.33...v1.0.0-beta.34) (2023-05-13)
79
+
80
+ ### Bug Fixes
81
+
82
+ - subscribeWith making guid null ([dbb38d4](https://github.com/sciactive/nymphjs/commit/dbb38d424f2395bbfa01ab4a0663dcaebf0c7aa7))
83
+
84
+ # [1.0.0-beta.33](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.32...v1.0.0-beta.33) (2023-05-13)
85
+
86
+ ### Bug Fixes
87
+
88
+ - don't send initial entities for qref subscriptions ([b07ed5c](https://github.com/sciactive/nymphjs/commit/b07ed5cb0404aa85dd58dc951261a2b4e3d2bcbf))
89
+
90
+ # [1.0.0-beta.32](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.31...v1.0.0-beta.32) (2023-05-13)
91
+
92
+ ### Features
93
+
94
+ - issue initial request with pubsub instead of rest on subscribe ([8a232d2](https://github.com/sciactive/nymphjs/commit/8a232d2faeb8622924f9c35a01a8f71a70659bb3))
95
+
96
+ # [1.0.0-beta.31](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.30...v1.0.0-beta.31) (2023-05-12)
97
+
98
+ **Note:** Version bump only for package @nymphjs/pubsub
99
+
100
+ # [1.0.0-beta.30](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.29...v1.0.0-beta.30) (2023-05-12)
101
+
102
+ ### Features
103
+
104
+ - allow providing getEntityClass with a class instead of string ([ecd64c1](https://github.com/sciactive/nymphjs/commit/ecd64c1bf92e3657889613b76bcc46652f371ead))
105
+
106
+ # [1.0.0-beta.29](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.28...v1.0.0-beta.29) (2023-05-08)
107
+
108
+ **Note:** Version bump only for package @nymphjs/pubsub
109
+
110
+ # [1.0.0-beta.28](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.27...v1.0.0-beta.28) (2023-05-05)
111
+
112
+ **Note:** Version bump only for package @nymphjs/pubsub
113
+
114
+ # [1.0.0-beta.27](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.26...v1.0.0-beta.27) (2023-05-04)
115
+
116
+ **Note:** Version bump only for package @nymphjs/pubsub
117
+
118
+ # [1.0.0-beta.26](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.25...v1.0.0-beta.26) (2023-05-04)
119
+
120
+ ### Bug Fixes
121
+
122
+ - broken pubsub test ([99de0e4](https://github.com/sciactive/nymphjs/commit/99de0e4e7a79420bae1c5df5fb8fcbfafe894ace))
123
+
124
+ # [1.0.0-beta.25](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.24...v1.0.0-beta.25) (2023-05-04)
125
+
126
+ ### Features
127
+
128
+ - add flags to disable rest and pubsub support on an entity class ([52106a3](https://github.com/sciactive/nymphjs/commit/52106a3d44065bcfec40d361344bf1eba59a5136)), closes [#1](https://github.com/sciactive/nymphjs/issues/1)
129
+
130
+ # [1.0.0-beta.24](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2023-05-02)
131
+
132
+ **Note:** Version bump only for package @nymphjs/pubsub
133
+
134
+ # [1.0.0-beta.23](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2023-05-02)
135
+
136
+ **Note:** Version bump only for package @nymphjs/pubsub
137
+
138
+ # [1.0.0-beta.22](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2023-05-01)
139
+
140
+ **Note:** Version bump only for package @nymphjs/pubsub
141
+
142
+ # [1.0.0-beta.21](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2023-05-01)
143
+
144
+ **Note:** Version bump only for package @nymphjs/pubsub
145
+
146
+ # [1.0.0-beta.20](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2023-04-30)
147
+
148
+ **Note:** Version bump only for package @nymphjs/pubsub
149
+
150
+ # [1.0.0-beta.19](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2023-04-29)
151
+
152
+ **Note:** Version bump only for package @nymphjs/pubsub
153
+
154
+ # [1.0.0-beta.18](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2023-04-27)
155
+
156
+ ### Bug Fixes
157
+
158
+ - small type issues ([b91579c](https://github.com/sciactive/nymphjs/commit/b91579c9c1e96500d903332648f5a93c9a7e7d9b))
159
+
160
+ ### Features
161
+
162
+ - add the ability to switch to a user without their password ([ca4466a](https://github.com/sciactive/nymphjs/commit/ca4466af1704d68905ac087350a8cf151c1072d9))
163
+
164
+ # [1.0.0-beta.17](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2023-04-24)
165
+
166
+ **Note:** Version bump only for package @nymphjs/pubsub
167
+
168
+ # [1.0.0-beta.16](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2023-03-31)
169
+
170
+ **Note:** Version bump only for package @nymphjs/pubsub
171
+
172
+ # [1.0.0-beta.15](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2023-03-23)
173
+
174
+ **Note:** Version bump only for package @nymphjs/pubsub
175
+
176
+ # [1.0.0-beta.14](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2023-03-17)
177
+
178
+ **Note:** Version bump only for package @nymphjs/pubsub
179
+
180
+ # [1.0.0-beta.13](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2023-03-16)
181
+
182
+ ### Bug Fixes
183
+
184
+ - pubsub publishing changes before transaction is finished ([a918cc1](https://github.com/sciactive/nymphjs/commit/a918cc1451e03015ecce20f1c9bf6ceb62b7dff1))
185
+
186
+ # [1.0.0-beta.12](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2023-03-04)
187
+
188
+ **Note:** Version bump only for package @nymphjs/pubsub
189
+
190
+ # [1.0.0-beta.11](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2023-02-27)
191
+
192
+ **Note:** Version bump only for package @nymphjs/pubsub
193
+
194
+ # [1.0.0-beta.10](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2023-01-19)
195
+
196
+ ### Bug Fixes
197
+
198
+ - explicitly set skipAc to false in PubSub server ([33f96f7](https://github.com/sciactive/nymphjs/commit/33f96f7ccabaedb9e226fe302a996259e0158315))
199
+
200
+ # [1.0.0-beta.9](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2023-01-09)
201
+
202
+ ### Bug Fixes
203
+
204
+ - reworked $is and $equals to better work with new instance based classes ([b1f3f0c](https://github.com/sciactive/nymphjs/commit/b1f3f0cca3e2b0dd392cd9da31167a6bd9487b40))
205
+
206
+ # [1.0.0-beta.8](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2023-01-09)
207
+
208
+ ### Features
209
+
210
+ - make entities in nymph client instance specific too ([1029f06](https://github.com/sciactive/nymphjs/commit/1029f061a1ad193e4a8a2dab0186b9a4b517f646))
211
+
212
+ # [1.0.0-beta.7](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2023-01-05)
213
+
214
+ **Note:** Version bump only for package @nymphjs/pubsub
215
+
216
+ # [1.0.0-beta.6](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.5...v1.0.0-beta.6) (2023-01-05)
217
+
218
+ **Note:** Version bump only for package @nymphjs/pubsub
219
+
6
220
  # [1.0.0-beta.5](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2022-11-24)
7
221
 
8
222
  **Note:** Version bump only for package @nymphjs/pubsub
package/README.md CHANGED
@@ -27,7 +27,7 @@ const nymph = new Nymph(
27
27
  {},
28
28
  new SQLite3Driver({
29
29
  filename: ':memory:', // Put the correct driver/config here.
30
- })
30
+ }),
31
31
  );
32
32
  PubSub.initPublisher(pubSubConfig, nymph);
33
33
  ```
@@ -51,7 +51,7 @@ const nymph = new Nymph(
51
51
  {},
52
52
  new SQLite3Driver({
53
53
  filename: ':memory:', // Put the correct driver/config here.
54
- })
54
+ }),
55
55
  );
56
56
  // Don't forget to do this; even here!
57
57
  PubSub.initPublisher(pubSubConfig, nymph);
@@ -81,7 +81,7 @@ const nymph = new Nymph(
81
81
  {},
82
82
  new SQLite3Driver({
83
83
  filename: ':memory:', // Put the correct driver/config here.
84
- })
84
+ }),
85
85
  );
86
86
  // Don't forget to do this; even here!
87
87
  PubSub.initPublisher(pubSubConfig, nymph);
@@ -95,7 +95,7 @@ const server = http.createServer((_request, response) => {
95
95
  const listener = server.listen(port, () => {
96
96
  console.log(
97
97
  new Date().toISOString(),
98
- `Nymph-PubSub server started listening on port ${port}.`
98
+ `Nymph-PubSub server started listening on port ${port}.`,
99
99
  );
100
100
  });
101
101
  const wsServer = new WebSocketServer({
package/dist/PubSub.d.ts CHANGED
@@ -17,8 +17,16 @@ export default class PubSub {
17
17
  count: boolean;
18
18
  }>;
19
19
  };
20
+ protected static transactionPublishes: {
21
+ nymph: Nymph;
22
+ payload: string;
23
+ config: Config;
24
+ }[];
20
25
  static initPublisher(config: Partial<Config>, nymph: Nymph): void;
21
26
  private static publish;
27
+ private static isOrIsDescendant;
28
+ private static publishTransactionPublishes;
29
+ private static removeTransactionPublishes;
22
30
  constructor(config: Partial<Config>, nymph: Nymph, server: WebSocketServer);
23
31
  close(): void;
24
32
  handleRequest(request: request): void;