@monerium/sdk 2.6.5 → 2.7.1

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,153 +1,182 @@
1
1
  # Changelog
2
2
 
3
- ## [2.6.5](https://github.com/monerium/sdk/compare/v2.6.4...v2.6.5) (2023-10-18)
3
+ ## [2.7.1](https://github.com/monerium/public-monorepo/compare/sdk-v2.7.0...sdk-v2.7.1) (2023-11-13)
4
+
5
+
6
+ ### Features
7
+
8
+ * add docs ([f5ba19d](https://github.com/monerium/public-monorepo/commit/f5ba19d5600e01cd0c97467a0a1f2fe94a2f40fc))
9
+ * new functions added + arguments to class instance ([b5b8c5d](https://github.com/monerium/public-monorepo/commit/b5b8c5d3fbae6ce7a90569b74d887b81d9f3a336))
4
10
 
5
11
 
6
12
  ### Bug Fixes
7
13
 
8
- * script to manually expand static file sidebar ([7b24240](https://github.com/monerium/sdk/commit/7b24240f642b80e05d2fd67665dbd6fe10f7aca5))
14
+ * add example, fix sdk for backwards compatibility and update README ([6992417](https://github.com/monerium/public-monorepo/commit/6992417e44b442a06b1d65f88d588d17e71b4562))
15
+ * add yarnrc to each lib ([6dc9f7a](https://github.com/monerium/public-monorepo/commit/6dc9f7a4a46e24596c862df83823f90be5dad803))
16
+ * continue on error gh-pages ([d033048](https://github.com/monerium/public-monorepo/commit/d033048a490390815ef17dad45b526b04898c2ae))
17
+ * debug ([b2543eb](https://github.com/monerium/public-monorepo/commit/b2543eb222cbe74131377e164c28c3093b72be5f))
18
+ * debug ([ea1bd38](https://github.com/monerium/public-monorepo/commit/ea1bd38c8f8f98cf65a9bcab615faa540a8b7324))
19
+ * debug ([20e3ccb](https://github.com/monerium/public-monorepo/commit/20e3ccb3297e3bba02be86349a151b1bf0ed8f5c))
20
+ * dep ([0d9953b](https://github.com/monerium/public-monorepo/commit/0d9953b5a2e259851d05d422ecf7f2c1fa36c6ea))
21
+ * letsgo ([af653ce](https://github.com/monerium/public-monorepo/commit/af653ce744b333023892370b21ec28738c82910e))
22
+ * lol ([630cb9f](https://github.com/monerium/public-monorepo/commit/630cb9fa3f4d7efa363b7fd9079c4e5e4e26bdd3))
23
+ * perm ([3210011](https://github.com/monerium/public-monorepo/commit/32100114916d85b1b1982cd942c3181210943ee9))
24
+ * props to auto-link ([ce85efd](https://github.com/monerium/public-monorepo/commit/ce85efd534cfcac7fb9e7804b733641aeb752f4f))
25
+ * publish ([537b336](https://github.com/monerium/public-monorepo/commit/537b336180df288e0653b0db7230ae84758f8475))
26
+ * publish not working ([50a2a05](https://github.com/monerium/public-monorepo/commit/50a2a0583c03ef7a66a605c8215f72256192b8e2))
27
+ * releaseas ([db309d2](https://github.com/monerium/public-monorepo/commit/db309d2635196bac5df230e886d70c395c58b06b))
28
+ * rewrite the CHANGELOG after a lot messy testing ([fb1a3c9](https://github.com/monerium/public-monorepo/commit/fb1a3c9517c269c49bc6ad9e492c79481184afcd))
29
+ * sdk version ([27c479c](https://github.com/monerium/public-monorepo/commit/27c479c3b324a33ea7e44613601e4f32269e9082))
30
+ * static files not deployed ([a1131d7](https://github.com/monerium/public-monorepo/commit/a1131d7ab988a93e41b7f3b65429b5aa27ff588e))
31
+ * stuff ([6b06483](https://github.com/monerium/public-monorepo/commit/6b06483ad5ca8f3e00e8d88f2739cf2526ae2101))
32
+ * stuff ([1dadd44](https://github.com/monerium/public-monorepo/commit/1dadd44f07fb2234bf1fca1f1f20dbc4158cface))
33
+ * syntax ([f8cfbad](https://github.com/monerium/public-monorepo/commit/f8cfbad0fa536808ddc988cf9e6ca8aef5247ef7))
34
+ * test ([2c52f99](https://github.com/monerium/public-monorepo/commit/2c52f99e5c2fc19c502fae01e7ca105010df979f))
35
+ * test ([21c2cb8](https://github.com/monerium/public-monorepo/commit/21c2cb8c936410f6701a87313cb1bcb4dd9f281f))
36
+ * test ([2a612b1](https://github.com/monerium/public-monorepo/commit/2a612b1f93a59ec709c9f328c7ba4bc910971de9))
37
+ * test ([0dfd8e1](https://github.com/monerium/public-monorepo/commit/0dfd8e1489db8096f1cb66a3816e410ddb996d64))
38
+ * test deploy ([1a3e311](https://github.com/monerium/public-monorepo/commit/1a3e311fdc7bde2f17390e4cdb3f0a48859e5cf9))
39
+ * test: ([e122f61](https://github.com/monerium/public-monorepo/commit/e122f61e5f907785b6076bfda855c275bcfce1d6))
40
+ * testing ([24389c9](https://github.com/monerium/public-monorepo/commit/24389c9f243671c548d957dc499689e58e0bc3f6))
41
+ * testing affected ([60059eb](https://github.com/monerium/public-monorepo/commit/60059ebc035dccf1dcbb4eb64cf0eeb071020caf))
42
+ * testing affected ([a10f49a](https://github.com/monerium/public-monorepo/commit/a10f49a4840218c9f5fa76463b3132401d0a23f4))
43
+ * trigger both packages ([a8db647](https://github.com/monerium/public-monorepo/commit/a8db647e694abd753bdb06df352c1d72617d7e67))
44
+ * trigger sdk ([ee1b950](https://github.com/monerium/public-monorepo/commit/ee1b9502c61655e5f0771827fdd116b58c748834))
45
+ * typedoc deps ([0696536](https://github.com/monerium/public-monorepo/commit/0696536edd834b6bf2ca6bf6ea39914d37fcda9c))
46
+ * uff ([ae8e9e5](https://github.com/monerium/public-monorepo/commit/ae8e9e510b5fad9997addd31e1153e9ef66a9d5c))
47
+ * version ([f3a1b1d](https://github.com/monerium/public-monorepo/commit/f3a1b1d7750a2f743d84426e60ea368909dcf93d))
48
+ * yarn instead of npm ([5b86535](https://github.com/monerium/public-monorepo/commit/5b86535ed225effa0d13b6b60388bf05783ebe63))
49
+
50
+ ## [2.7.0](https://github.com/monerium/public-monorepo/compare/sdk-v2.7.0...sdk-v2.7.0) (2023-11-13)
9
51
 
10
- ## [2.6.4](https://github.com/monerium/sdk/compare/v2.6.3...v2.6.4) (2023-10-18)
52
+ ### Features
53
+
54
+ - add clientId and redirectUrl as props to class initializer so it doesn't need to be defined more then once.
55
+ - add `authorize` and `connect` functions that make integration easier by using SessionStorage to manage the code verifier and refresh tokens.
56
+ - add helpers `getChain` and `getNetwork`, adding support to use chainIds to translate to Monerium's Chain and Network enums.
57
+ - renamed `auth` to `getBearerToken`.
11
58
 
59
+ ## [2.6.4](https://github.com/monerium/sdk/compare/v2.6.3...v2.6.4) (2023-10-18)
12
60
 
13
61
  ### Bug Fixes
14
62
 
15
- * **docs:** add links and fix sidebar not expading ([c8eab4a](https://github.com/monerium/sdk/commit/c8eab4a2006ea7068c442828c7e2e65eaedf8b71))
63
+ - **docs:** add links and fix sidebar not expading ([c8eab4a](https://github.com/monerium/sdk/commit/c8eab4a2006ea7068c442828c7e2e65eaedf8b71))
16
64
 
17
65
  ## [2.6.3](https://github.com/monerium/sdk/compare/v2.6.2...v2.6.3) (2023-10-18)
18
66
 
19
-
20
67
  ### Bug Fixes
21
68
 
22
- * tests ([6be0014](https://github.com/monerium/sdk/commit/6be00148724942bdca74bbeea961b8b33bcd80f7))
69
+ - tests ([6be0014](https://github.com/monerium/sdk/commit/6be00148724942bdca74bbeea961b8b33bcd80f7))
23
70
 
24
71
  ## [2.6.2](https://github.com/monerium/sdk/compare/v2.6.1...v2.6.2) (2023-10-18)
25
72
 
26
-
27
73
  ### Bug Fixes
28
74
 
29
- * add missing info from README [no-ci] ([600bda5](https://github.com/monerium/sdk/commit/600bda52f9d8b61aa47222ace5308d3087e674e5))
30
- * **docs:** add source code link to README ([c2a9294](https://github.com/monerium/sdk/commit/c2a9294f49e60ba9fd9373d94ec6069b6b559fb0))
31
- * revert changes to action ([36eada9](https://github.com/monerium/sdk/commit/36eada92b89b9bf1de0659f74479d27b58697975))
32
- * update docs on every push to main ([e0f57e6](https://github.com/monerium/sdk/commit/e0f57e61312a5fce0d02608eed6fc7c5aaba5b09))
75
+ - add missing info from README [no-ci] ([600bda5](https://github.com/monerium/sdk/commit/600bda52f9d8b61aa47222ace5308d3087e674e5))
76
+ - **docs:** add source code link to README ([c2a9294](https://github.com/monerium/sdk/commit/c2a9294f49e60ba9fd9373d94ec6069b6b559fb0))
77
+ - revert changes to action ([36eada9](https://github.com/monerium/sdk/commit/36eada92b89b9bf1de0659f74479d27b58697975))
78
+ - update docs on every push to main ([e0f57e6](https://github.com/monerium/sdk/commit/e0f57e61312a5fce0d02608eed6fc7c5aaba5b09))
33
79
 
34
80
  ## [2.6.1](https://github.com/monerium/sdk/compare/v2.6.0...v2.6.1) (2023-09-11)
35
81
 
36
-
37
82
  ### Bug Fixes
38
83
 
39
- * add info how to set environment ([c803cc5](https://github.com/monerium/sdk/commit/c803cc579ea11006ab845d4a4790e2a9bffae0b0))
84
+ - add info how to set environment ([c803cc5](https://github.com/monerium/sdk/commit/c803cc579ea11006ab845d4a4790e2a9bffae0b0))
40
85
 
41
86
  ## [2.6.0](https://github.com/monerium/sdk/compare/v2.5.2...v2.6.0) (2023-07-19)
42
87
 
43
-
44
88
  ### Features
45
89
 
46
- * removed Chain and Network enum ([600a634](https://github.com/monerium/sdk/commit/600a6348f4f6ce0b3f2cc472c807520620bc0d60))
47
-
90
+ - removed Chain and Network enum ([600a634](https://github.com/monerium/sdk/commit/600a6348f4f6ce0b3f2cc472c807520620bc0d60))
48
91
 
49
92
  ### Bug Fixes
50
93
 
51
- * constants typed import ([600a634](https://github.com/monerium/sdk/commit/600a6348f4f6ce0b3f2cc472c807520620bc0d60))
94
+ - constants typed import ([600a634](https://github.com/monerium/sdk/commit/600a6348f4f6ce0b3f2cc472c807520620bc0d60))
52
95
 
53
96
  ## [2.5.2](https://github.com/monerium/sdk/compare/v2.5.1...v2.5.2) (2023-07-05)
54
97
 
55
-
56
98
  ### Bug Fixes
57
99
 
58
- * add state to Account type, closes [#96](https://github.com/monerium/sdk/issues/96) ([5693146](https://github.com/monerium/sdk/commit/5693146d8951e9e7024dcd1f8c262707ade8f642))
59
- * getBalances always returns an array, closes [#98](https://github.com/monerium/sdk/issues/98) ([144b1f9](https://github.com/monerium/sdk/commit/144b1f944c78269bf9ebed72a5da046511a15aea))
100
+ - add state to Account type, closes [#96](https://github.com/monerium/sdk/issues/96) ([5693146](https://github.com/monerium/sdk/commit/5693146d8951e9e7024dcd1f8c262707ade8f642))
101
+ - getBalances always returns an array, closes [#98](https://github.com/monerium/sdk/issues/98) ([144b1f9](https://github.com/monerium/sdk/commit/144b1f944c78269bf9ebed72a5da046511a15aea))
60
102
 
61
103
  ## [2.5.1](https://github.com/monerium/sdk/compare/v2.5.0...v2.5.1) (2023-06-15)
62
104
 
63
-
64
105
  ### Bug Fixes
65
106
 
66
- * extend timeout on place order test ([0a81449](https://github.com/monerium/sdk/commit/0a81449e201df00045694af693c866b801ddea32))
107
+ - extend timeout on place order test ([0a81449](https://github.com/monerium/sdk/commit/0a81449e201df00045694af693c866b801ddea32))
67
108
 
68
109
  ## [2.5.0](https://github.com/monerium/sdk/compare/v2.4.1...v2.5.0) (2023-06-15)
69
110
 
70
-
71
111
  ### Features
72
112
 
73
- * expose rfc3339 function ([f9e5bec](https://github.com/monerium/sdk/commit/f9e5bec6fbd2209f58b240be90d833f8fdcaae0a))
74
-
113
+ - expose rfc3339 function ([f9e5bec](https://github.com/monerium/sdk/commit/f9e5bec6fbd2209f58b240be90d833f8fdcaae0a))
75
114
 
76
115
  ### Bug Fixes
77
116
 
78
- * should be client.codeVerifier ([46c986a](https://github.com/monerium/sdk/commit/46c986a246cf4623ce283b2e8b2f9bc2c4c9ad35))
117
+ - should be client.codeVerifier ([46c986a](https://github.com/monerium/sdk/commit/46c986a246cf4623ce283b2e8b2f9bc2c4c9ad35))
79
118
 
80
119
  ## [2.4.1](https://github.com/monerium/sdk/compare/v2.4.0...v2.4.1) (2023-05-10)
81
120
 
82
-
83
121
  ### Bug Fixes
84
122
 
85
- * placeOrderMessage parameters, should take two arguments instead of one nested ([5c32da0](https://github.com/monerium/sdk/commit/5c32da01f3a0018aa69f00511f63fba8c3d7ec8b))
123
+ - placeOrderMessage parameters, should take two arguments instead of one nested ([5c32da0](https://github.com/monerium/sdk/commit/5c32da01f3a0018aa69f00511f63fba8c3d7ec8b))
86
124
 
87
125
  ## [2.4.0](https://github.com/monerium/sdk/compare/v2.3.0...v2.4.0) (2023-05-09)
88
126
 
89
-
90
127
  ### Features
91
128
 
92
- * kind always redeem from place order [#87](https://github.com/monerium/sdk/issues/87) ([#88](https://github.com/monerium/sdk/issues/88)) ([850921e](https://github.com/monerium/sdk/commit/850921ed0aa8d36e180ee7c1df439e04f5d7085b))
93
-
129
+ - kind always redeem from place order [#87](https://github.com/monerium/sdk/issues/87) ([#88](https://github.com/monerium/sdk/issues/88)) ([850921e](https://github.com/monerium/sdk/commit/850921ed0aa8d36e180ee7c1df439e04f5d7085b))
94
130
 
95
131
  ### Bug Fixes
96
132
 
97
- * custom urlEncoder for x-www-forms so the package works for Metamask snapa ([#91](https://github.com/monerium/sdk/issues/91)) ([8375164](https://github.com/monerium/sdk/commit/83751645565c4b7054f8aabffaa8f91eea8d5caf))
98
- * lint ([82f8f7c](https://github.com/monerium/sdk/commit/82f8f7c0192b235c4e0e584a25d52490e1575aa3))
99
- * vscode cant detect the configs in nested folder ([#89](https://github.com/monerium/sdk/issues/89)) ([398dcf1](https://github.com/monerium/sdk/commit/398dcf1513de86a7c3949493e3728aac746349fa))
100
- * we only support EUR for now + adjust placeOrder request type ([1c54932](https://github.com/monerium/sdk/commit/1c549321192c115947f1ce574c97cf618353a6ef))
101
- * we only support EUR for now + adjust placeOrder request type ([07f801a](https://github.com/monerium/sdk/commit/07f801a1088bf2df014af549214199bb17ee8f51))
102
-
133
+ - custom urlEncoder for x-www-forms so the package works for Metamask snapa ([#91](https://github.com/monerium/sdk/issues/91)) ([8375164](https://github.com/monerium/sdk/commit/83751645565c4b7054f8aabffaa8f91eea8d5caf))
134
+ - lint ([82f8f7c](https://github.com/monerium/sdk/commit/82f8f7c0192b235c4e0e584a25d52490e1575aa3))
135
+ - vscode cant detect the configs in nested folder ([#89](https://github.com/monerium/sdk/issues/89)) ([398dcf1](https://github.com/monerium/sdk/commit/398dcf1513de86a7c3949493e3728aac746349fa))
136
+ - we only support EUR for now + adjust placeOrder request type ([1c54932](https://github.com/monerium/sdk/commit/1c549321192c115947f1ce574c97cf618353a6ef))
137
+ - we only support EUR for now + adjust placeOrder request type ([07f801a](https://github.com/monerium/sdk/commit/07f801a1088bf2df014af549214199bb17ee8f51))
103
138
 
104
139
  ### Miscellaneous
105
140
 
106
- * add a comment to explain how to use the Network type ([c913224](https://github.com/monerium/sdk/commit/c9132242d2f977524ba6467210344b1c8dc51e85))
107
- * add info about sdks to Readme ([ad10488](https://github.com/monerium/sdk/commit/ad10488ce634787bee3b1eab8be6b8d78f56f834))
141
+ - add a comment to explain how to use the Network type ([c913224](https://github.com/monerium/sdk/commit/c9132242d2f977524ba6467210344b1c8dc51e85))
142
+ - add info about sdks to Readme ([ad10488](https://github.com/monerium/sdk/commit/ad10488ce634787bee3b1eab8be6b8d78f56f834))
108
143
 
109
144
  ## [2.3.0](https://github.com/monerium/sdk/compare/v2.2.3...v2.3.0) (2023-04-30)
110
145
 
111
-
112
146
  ### ⚠ BREAKING CHANGES
113
147
 
114
- * '@monerium/sdk' now exports Network and Chain as types, previously enums </br> Enums are now exported under 'constants' </br> import { constants } from '@monerium/sdk'; </br> const { Network } = constants; </br></br> new Network type takes two optional params for Chain and Environmant</br> import { Network } from '@monerium/sdk'</br></br> // is valid </br> const network: Network<'gnosis','production> = 'mainnet';</br> const network: Network<'gnosis','sandbox> = 'chiado';</br> const network: Network<'gnosis',> = 'chiado';</br> const network: Network = 'chiado';</br></br> // is invalid </br> const network: Network<'gnosis','sandbox> = 'mainnet';</br> const network: Network<'gnosis'> = 'goerli';</br>
148
+ - '@monerium/sdk' now exports Network and Chain as types, previously enums </br> Enums are now exported under 'constants' </br> import { constants } from '@monerium/sdk'; </br> const { Network } = constants; </br></br> new Network type takes two optional params for Chain and Environmant</br> import { Network } from '@monerium/sdk'</br></br> // is valid </br> const network: Network<'gnosis','production> = 'mainnet';</br> const network: Network<'gnosis','sandbox> = 'chiado';</br> const network: Network<'gnosis',> = 'chiado';</br> const network: Network = 'chiado';</br></br> // is invalid </br> const network: Network<'gnosis','sandbox> = 'mainnet';</br> const network: Network<'gnosis'> = 'goerli';</br>
115
149
 
116
150
  ### Features
117
151
 
118
- * expose helper to create place order message ([#85](https://github.com/monerium/sdk/issues/85)) ([b124370](https://github.com/monerium/sdk/commit/b1243702c534a6d40e0ce657ff8db9a6f55546a5))
119
- * network types with optional chain and env type params ([#82](https://github.com/monerium/sdk/issues/82)) ([154d626](https://github.com/monerium/sdk/commit/154d626798150640ac2ed331b98029a18984555c))
120
- * refactor, improve and test fetch ([#86](https://github.com/monerium/sdk/issues/86)) ([26a8ceb](https://github.com/monerium/sdk/commit/26a8ceb78ec38553709afa2add0108ee3e10e125))
121
-
152
+ - expose helper to create place order message ([#85](https://github.com/monerium/sdk/issues/85)) ([b124370](https://github.com/monerium/sdk/commit/b1243702c534a6d40e0ce657ff8db9a6f55546a5))
153
+ - network types with optional chain and env type params ([#82](https://github.com/monerium/sdk/issues/82)) ([154d626](https://github.com/monerium/sdk/commit/154d626798150640ac2ed331b98029a18984555c))
154
+ - refactor, improve and test fetch ([#86](https://github.com/monerium/sdk/issues/86)) ([26a8ceb](https://github.com/monerium/sdk/commit/26a8ceb78ec38553709afa2add0108ee3e10e125))
122
155
 
123
156
  ### Miscellaneous
124
157
 
125
- * release 2.3.0 ([bff6ece](https://github.com/monerium/sdk/commit/bff6ece14c0b7b7a362b21df0b024b0a6a8f6678))
158
+ - release 2.3.0 ([bff6ece](https://github.com/monerium/sdk/commit/bff6ece14c0b7b7a362b21df0b024b0a6a8f6678))
126
159
 
127
160
  ## [2.2.3](https://github.com/monerium/sdk/compare/v2.2.2...v2.2.3) (2023-04-28)
128
161
 
129
-
130
162
  ### Bug Fixes
131
163
 
132
- * commonjs bundle not properly referenced in package.json ([85d4b19](https://github.com/monerium/sdk/commit/85d4b19c054102b48b9cd55c55b498965e9db7b6))
133
-
164
+ - commonjs bundle not properly referenced in package.json ([85d4b19](https://github.com/monerium/sdk/commit/85d4b19c054102b48b9cd55c55b498965e9db7b6))
134
165
 
135
166
  ### Miscellaneous
136
167
 
137
- * add version to action step ([804d0d8](https://github.com/monerium/sdk/commit/804d0d843b809aad960f224a0602edd3359454fc))
168
+ - add version to action step ([804d0d8](https://github.com/monerium/sdk/commit/804d0d843b809aad960f224a0602edd3359454fc))
138
169
 
139
170
  ## [2.2.2](https://github.com/monerium/sdk/compare/v2.2.1...v2.2.2) (2023-04-26)
140
171
 
141
-
142
172
  ### Bug Fixes
143
173
 
144
- * coverage output path ([675b7cd](https://github.com/monerium/sdk/commit/675b7cd3536a320dcbe915bfeb077609bfa834b1))
145
-
174
+ - coverage output path ([675b7cd](https://github.com/monerium/sdk/commit/675b7cd3536a320dcbe915bfeb077609bfa834b1))
146
175
 
147
176
  ### Miscellaneous
148
177
 
149
- * archive build and reuse for deploying static files. ([#80](https://github.com/monerium/sdk/issues/80)) ([cfc34d8](https://github.com/monerium/sdk/commit/cfc34d80f2db547505c34b55ab3b2a7d0a37aae5))
150
- * move .prettierignore into configs folder and add some rules ([171b0b3](https://github.com/monerium/sdk/commit/171b0b3c5dc807f0bec0cc9220b390302fdd98e9))
178
+ - archive build and reuse for deploying static files. ([#80](https://github.com/monerium/sdk/issues/80)) ([cfc34d8](https://github.com/monerium/sdk/commit/cfc34d80f2db547505c34b55ab3b2a7d0a37aae5))
179
+ - move .prettierignore into configs folder and add some rules ([171b0b3](https://github.com/monerium/sdk/commit/171b0b3c5dc807f0bec0cc9220b390302fdd98e9))
151
180
 
152
181
  ## [2.2.1](https://github.com/monerium/sdk/compare/v2.2.0...v2.2.1) (2023-04-26)
153
182