@nymphjs/client 1.0.0-beta.2 → 1.0.0-beta.20
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 +88 -0
- package/README.md +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/lib/Entity.d.ts +2 -2
- package/lib/Entity.js +2 -5
- package/lib/Entity.js.map +1 -1
- package/lib/Entity.types.d.ts +1 -1
- package/lib/EntityWeakCache.js +3 -2
- package/lib/EntityWeakCache.js.map +1 -1
- package/lib/HttpRequester.d.ts +26 -4
- package/lib/HttpRequester.js +42 -12
- package/lib/HttpRequester.js.map +1 -1
- package/lib/Nymph.d.ts +4 -4
- package/lib/Nymph.js +12 -12
- package/lib/Nymph.js.map +1 -1
- package/lib/Nymph.types.d.ts +2 -1
- package/lib/PubSub.d.ts +3 -1
- package/lib/PubSub.js +12 -7
- package/lib/PubSub.js.map +1 -1
- package/package.json +11 -11
- package/src/Entity.ts +1 -4
- package/src/Entity.types.ts +1 -1
- package/src/EntityWeakCache.ts +7 -5
- package/src/HttpRequester.ts +48 -11
- package/src/Nymph.ts +28 -16
- package/src/Nymph.types.ts +5 -1
- package/src/PubSub.ts +15 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,94 @@
|
|
|
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.20](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2023-04-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nymphjs/client
|
|
9
|
+
|
|
10
|
+
# [1.0.0-beta.19](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2023-04-29)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- some type issues ([ee69d5d](https://github.com/sciactive/nymphjs/commit/ee69d5d73361dacda5745d697df18fafd47810bc))
|
|
15
|
+
|
|
16
|
+
# [1.0.0-beta.18](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2023-04-27)
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- add the ability to switch to a user without their password ([ca4466a](https://github.com/sciactive/nymphjs/commit/ca4466af1704d68905ac087350a8cf151c1072d9))
|
|
21
|
+
|
|
22
|
+
# [1.0.0-beta.17](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2023-04-24)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @nymphjs/client
|
|
25
|
+
|
|
26
|
+
# [1.0.0-beta.16](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2023-03-31)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @nymphjs/client
|
|
29
|
+
|
|
30
|
+
# [1.0.0-beta.15](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2023-03-23)
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
- add option to sort results by a property ([16384e7](https://github.com/sciactive/nymphjs/commit/16384e7bdab88abb55ccccabb06ac09f92fa8a03))
|
|
35
|
+
|
|
36
|
+
# [1.0.0-beta.14](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2023-03-17)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @nymphjs/client
|
|
39
|
+
|
|
40
|
+
# [1.0.0-beta.13](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2023-03-16)
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
- add noAutoconnect option to pubsub client ([266e715](https://github.com/sciactive/nymphjs/commit/266e715988b34f3e0d58ac68178677d2086b5160))
|
|
45
|
+
|
|
46
|
+
# [1.0.0-beta.12](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2023-03-04)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @nymphjs/client
|
|
49
|
+
|
|
50
|
+
# [1.0.0-beta.11](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2023-02-27)
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
- allow customizing HTTP status codes in response from server called methods ([8c5c3d4](https://github.com/sciactive/nymphjs/commit/8c5c3d4af741edabc1a8947aaebf026ba546c46a))
|
|
55
|
+
|
|
56
|
+
# [1.0.0-beta.10](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2023-01-19)
|
|
57
|
+
|
|
58
|
+
**Note:** Version bump only for package @nymphjs/client
|
|
59
|
+
|
|
60
|
+
# [1.0.0-beta.9](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2023-01-09)
|
|
61
|
+
|
|
62
|
+
### Bug Fixes
|
|
63
|
+
|
|
64
|
+
- reworked $is and $equals to better work with new instance based classes ([b1f3f0c](https://github.com/sciactive/nymphjs/commit/b1f3f0cca3e2b0dd392cd9da31167a6bd9487b40))
|
|
65
|
+
|
|
66
|
+
# [1.0.0-beta.8](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2023-01-09)
|
|
67
|
+
|
|
68
|
+
### Features
|
|
69
|
+
|
|
70
|
+
- make entities in nymph client instance specific too ([1029f06](https://github.com/sciactive/nymphjs/commit/1029f061a1ad193e4a8a2dab0186b9a4b517f646))
|
|
71
|
+
|
|
72
|
+
# [1.0.0-beta.7](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2023-01-05)
|
|
73
|
+
|
|
74
|
+
**Note:** Version bump only for package @nymphjs/client
|
|
75
|
+
|
|
76
|
+
# [1.0.0-beta.6](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.5...v1.0.0-beta.6) (2023-01-05)
|
|
77
|
+
|
|
78
|
+
**Note:** Version bump only for package @nymphjs/client
|
|
79
|
+
|
|
80
|
+
# [1.0.0-beta.5](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2022-11-24)
|
|
81
|
+
|
|
82
|
+
**Note:** Version bump only for package @nymphjs/client
|
|
83
|
+
|
|
84
|
+
# [1.0.0-beta.4](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2022-11-23)
|
|
85
|
+
|
|
86
|
+
### Bug Fixes
|
|
87
|
+
|
|
88
|
+
- client entity patch returning opposite result ([c29260c](https://github.com/sciactive/nymphjs/commit/c29260c6c9037134dbf51091810823edcab44b4a))
|
|
89
|
+
|
|
90
|
+
# [1.0.0-beta.3](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2022-11-21)
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @nymphjs/client
|
|
93
|
+
|
|
6
94
|
# [1.0.0-beta.2](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2022-11-21)
|
|
7
95
|
|
|
8
96
|
**Note:** Version bump only for package @nymphjs/client
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Here's an overview:
|
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
20
|
import { Nymph, PubSub } from '@nymphjs/client';
|
|
21
|
-
import
|
|
21
|
+
import TodoClass from 'Todo';
|
|
22
22
|
|
|
23
23
|
const nymphOptions = {
|
|
24
24
|
restUrl: 'https://yournymphrestserver/path/to/your/endpoint',
|
|
@@ -26,7 +26,7 @@ const nymphOptions = {
|
|
|
26
26
|
};
|
|
27
27
|
const nymph = new Nymph(nymphOptions);
|
|
28
28
|
const pubsub = new PubSub(nymphOptions, nymph);
|
|
29
|
-
nymph.addEntityClass(
|
|
29
|
+
const Todo = nymph.addEntityClass(TodoClass);
|
|
30
30
|
|
|
31
31
|
// Now you can use Nymph and PubSub.
|
|
32
32
|
const myTodo = new Todo();
|