@voiceflow/common 8.2.6 → 8.2.7-RC1
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 +373 -0
- package/build/cjs/utils/id.js +2 -2
- package/build/cjs/utils/object/deepMap.test.js +3 -6
- package/build/cjs/utils/protocol.d.ts.map +1 -1
- package/build/cjs/utils/protocol.js +2 -5
- package/build/esm/utils/id.js +1 -1
- package/build/esm/utils/object/deepMap.test.js +3 -3
- package/build/esm/utils/protocol.d.ts.map +1 -1
- package/build/esm/utils/protocol.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [8.2.7](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.2.6...@voiceflow/common@8.2.7) (2024-01-06)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* typescript fsa (CT-000) ([199cee5](https://github.com/voiceflow/libs/commit/199cee581edabc8cc4351e8a6f3cd8835c419287))
|
|
11
|
+
|
|
12
|
+
## [8.2.6](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.2.5...@voiceflow/common@8.2.6) (2024-01-05)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* working ESM build (DX-903) ([#492](https://github.com/voiceflow/libs/issues/492)) ([ab7c8b4](https://github.com/voiceflow/libs/commit/ab7c8b407344c77ac3716921360e27eedcfb8d04))
|
|
17
|
+
|
|
18
|
+
## [8.2.5](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.2.4...@voiceflow/common@8.2.5) (2024-01-04)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @voiceflow/common
|
|
21
|
+
|
|
22
|
+
## [8.2.4](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.2.3...@voiceflow/common@8.2.4) (2023-12-13)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @voiceflow/common
|
|
25
|
+
|
|
26
|
+
## [8.2.3](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.2.2...@voiceflow/common@8.2.3) (2023-11-23)
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* do not do variable uri replacement ([458e6ac](https://github.com/voiceflow/libs/commit/458e6acd061d0b32df28259464363753abad91da))
|
|
31
|
+
|
|
32
|
+
## [8.2.2](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.2.1...@voiceflow/common@8.2.2) (2023-10-30)
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* deep map (CT-000) ([#465](https://github.com/voiceflow/libs/issues/465)) ([0a626f7](https://github.com/voiceflow/libs/commit/0a626f724a5d9bfa6a14a3f5ff5ce58c816fac1b))
|
|
37
|
+
|
|
38
|
+
## [8.2.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.2.0...@voiceflow/common@8.2.1) (2023-08-21)
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* potential fix for the (CV3-267) ([1c95eaa](https://github.com/voiceflow/libs/commit/1c95eaa3605961e79b084fdea102466eafb0592a))
|
|
43
|
+
|
|
44
|
+
# [8.2.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.1.5...@voiceflow/common@8.2.0) (2023-01-21)
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
* improve pick/omit utils (CT-000) ([#415](https://github.com/voiceflow/libs/issues/415)) ([9dda450](https://github.com/voiceflow/libs/commit/9dda450028bbaf406b9614f72140cc5d86b8eb60))
|
|
49
|
+
|
|
50
|
+
## [8.1.5](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.1.4...@voiceflow/common@8.1.5) (2022-09-05)
|
|
51
|
+
|
|
52
|
+
### Bug Fixes
|
|
53
|
+
|
|
54
|
+
* dialogflow cx (PL-152) ([#362](https://github.com/voiceflow/libs/issues/362)) ([f14b962](https://github.com/voiceflow/libs/commit/f14b962846e72d77299f8d657d17fc1fc33af15f))
|
|
55
|
+
|
|
56
|
+
## [8.1.4](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.1.3...@voiceflow/common@8.1.4) (2022-08-12)
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* get samples should be optional ([71f302b](https://github.com/voiceflow/libs/commit/71f302b5bdeee754e5cc66a02a5ff009dac26f51))
|
|
61
|
+
|
|
62
|
+
## [8.1.3](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.1.2...@voiceflow/common@8.1.3) (2022-08-12)
|
|
63
|
+
|
|
64
|
+
### Bug Fixes
|
|
65
|
+
|
|
66
|
+
* utterance replacer (PL-000) ([#352](https://github.com/voiceflow/libs/issues/352)) ([e948345](https://github.com/voiceflow/libs/commit/e9483452742f038fabe8eea021aa1f9401378843))
|
|
67
|
+
|
|
68
|
+
## [8.1.2](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.1.1...@voiceflow/common@8.1.2) (2022-07-21)
|
|
69
|
+
|
|
70
|
+
### Bug Fixes
|
|
71
|
+
|
|
72
|
+
* common ([2041f27](https://github.com/voiceflow/libs/commit/2041f272b1918a655428379997cc0c3c99629ab3))
|
|
73
|
+
|
|
74
|
+
## [8.1.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.1.0...@voiceflow/common@8.1.1) (2022-07-21)
|
|
75
|
+
|
|
76
|
+
### Bug Fixes
|
|
77
|
+
|
|
78
|
+
* esm build ([34463cb](https://github.com/voiceflow/libs/commit/34463cbe196ddd65653bcf3945d00cc257dc5f9e))
|
|
79
|
+
|
|
80
|
+
# [8.1.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.0.1...@voiceflow/common@8.1.0) (2022-07-20)
|
|
81
|
+
|
|
82
|
+
### Features
|
|
83
|
+
|
|
84
|
+
* add mapEntry object util (vf-000) ([#335](https://github.com/voiceflow/libs/issues/335)) ([a58311c](https://github.com/voiceflow/libs/commit/a58311cc72044bbd84a3bb8df5bc5514a9b3a3a5))
|
|
85
|
+
|
|
86
|
+
## [8.0.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@8.0.0...@voiceflow/common@8.0.1) (2022-07-19)
|
|
87
|
+
|
|
88
|
+
### Bug Fixes
|
|
89
|
+
|
|
90
|
+
* reference types in published directory (VF-000) ([#329](https://github.com/voiceflow/libs/issues/329)) ([9012106](https://github.com/voiceflow/libs/commit/9012106d697d26a9878ba427df56b07fa05c7e60))
|
|
91
|
+
|
|
92
|
+
# [8.0.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.28.0...@voiceflow/common@8.0.0) (2022-07-19)
|
|
93
|
+
|
|
94
|
+
### Features
|
|
95
|
+
|
|
96
|
+
* add missing unit tests to common (vf-000) ([#326](https://github.com/voiceflow/libs/issues/326)) ([3d082c7](https://github.com/voiceflow/libs/commit/3d082c79ccf38229bef83dcc5d0e756416468825))
|
|
97
|
+
|
|
98
|
+
### BREAKING CHANGES
|
|
99
|
+
|
|
100
|
+
* removes unused utility functions
|
|
101
|
+
|
|
102
|
+
Co-authored-by: Ben Teichman <ben@voiceflow.com>
|
|
103
|
+
|
|
104
|
+
# [7.28.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.27.3...@voiceflow/common@7.28.0) (2022-07-18)
|
|
105
|
+
|
|
106
|
+
### Features
|
|
107
|
+
|
|
108
|
+
* improve typescript monorepo configuration (DX-37) ([#323](https://github.com/voiceflow/libs/issues/323)) ([98dfa98](https://github.com/voiceflow/libs/commit/98dfa98cf64f1dc7705cbc94a3a5dd3c3e825900))
|
|
109
|
+
|
|
110
|
+
## [7.27.3](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.27.2...@voiceflow/common@7.27.3) (2022-06-24)
|
|
111
|
+
|
|
112
|
+
### Bug Fixes
|
|
113
|
+
|
|
114
|
+
* new email regex (VF-3921) ([#314](https://github.com/voiceflow/libs/issues/314)) ([1fea4b5](https://github.com/voiceflow/libs/commit/1fea4b5d78c15407ddf59eab6c4141a4398c5d03))
|
|
115
|
+
|
|
116
|
+
## [7.27.2](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.27.1...@voiceflow/common@7.27.2) (2022-06-24)
|
|
117
|
+
|
|
118
|
+
### Bug Fixes
|
|
119
|
+
|
|
120
|
+
* shallowequal types ([fda5067](https://github.com/voiceflow/libs/commit/fda50678957775d510a926cea7a99f7de494b8f7))
|
|
121
|
+
|
|
122
|
+
## [7.27.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.27.0...@voiceflow/common@7.27.1) (2022-06-22)
|
|
123
|
+
|
|
124
|
+
### Bug Fixes
|
|
125
|
+
|
|
126
|
+
* shallow partial equals (VF-3887) ([#310](https://github.com/voiceflow/libs/issues/310)) ([56b4392](https://github.com/voiceflow/libs/commit/56b439284c7bba6ca36d7d29de9cf1cb50457d4e))
|
|
127
|
+
|
|
128
|
+
# [7.27.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.26.1...@voiceflow/common@7.27.0) (2022-05-25)
|
|
129
|
+
|
|
130
|
+
### Features
|
|
131
|
+
|
|
132
|
+
* add ports.out.byKey type definition (VF-3575) ([#285](https://github.com/voiceflow/libs/issues/285)) ([f9f1595](https://github.com/voiceflow/libs/commit/f9f159598f5e42a52b22525ce193b3d4942f0ef5))
|
|
133
|
+
|
|
134
|
+
## [7.26.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.26.0...@voiceflow/common@7.26.1) (2022-05-05)
|
|
135
|
+
|
|
136
|
+
### Bug Fixes
|
|
137
|
+
|
|
138
|
+
* add short-form for month (VF-3432) ([#260](https://github.com/voiceflow/libs/issues/260)) ([fcce55b](https://github.com/voiceflow/libs/commit/fcce55b4690d5e58325a5db0206e17d4a073af4f))
|
|
139
|
+
|
|
140
|
+
# [7.26.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.25.3...@voiceflow/common@7.26.0) (2022-04-08)
|
|
141
|
+
|
|
142
|
+
### Features
|
|
143
|
+
|
|
144
|
+
* array merge utility method (VF-000) ([#243](https://github.com/voiceflow/libs/issues/243)) ([60bf56d](https://github.com/voiceflow/libs/commit/60bf56de2d43c2f3c305df272f88a3a009219c6b))
|
|
145
|
+
* slot annotation map utility (VF-000) ([#244](https://github.com/voiceflow/libs/issues/244)) ([1c32f11](https://github.com/voiceflow/libs/commit/1c32f114aa5ef4e227a4adbdffe006eef722ea01))
|
|
146
|
+
|
|
147
|
+
## [7.25.3](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.25.2...@voiceflow/common@7.25.3) (2022-04-07)
|
|
148
|
+
|
|
149
|
+
### Bug Fixes
|
|
150
|
+
|
|
151
|
+
* write tests for Utils.array.reorder (VF-000) ([#242](https://github.com/voiceflow/libs/issues/242)) ([2ce42f8](https://github.com/voiceflow/libs/commit/2ce42f84d248ab1d2cda1efb32485c6934f592e5))
|
|
152
|
+
|
|
153
|
+
## [7.25.2](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.25.1...@voiceflow/common@7.25.2) (2022-04-07)
|
|
154
|
+
|
|
155
|
+
### Bug Fixes
|
|
156
|
+
|
|
157
|
+
* expose tuple types (VF-3082) ([#241](https://github.com/voiceflow/libs/issues/241)) ([f6bb230](https://github.com/voiceflow/libs/commit/f6bb230e6edc12a1ccc960928954b9944d49b85c)), closes [voiceflow/general-service#295](https://github.com/voiceflow/general-service/issues/295)
|
|
158
|
+
|
|
159
|
+
## [7.25.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.25.0...@voiceflow/common@7.25.1) (2022-03-29)
|
|
160
|
+
|
|
161
|
+
### Bug Fixes
|
|
162
|
+
|
|
163
|
+
* moving slot annotation regex (VF-3190) ([#233](https://github.com/voiceflow/libs/issues/233)) ([82abcfe](https://github.com/voiceflow/libs/commit/82abcfe3a99fdafec292ff04f1a0e6fd6809ea59))
|
|
164
|
+
|
|
165
|
+
# [7.25.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.24.0...@voiceflow/common@7.25.0) (2022-03-25)
|
|
166
|
+
|
|
167
|
+
### Features
|
|
168
|
+
|
|
169
|
+
* **common:** add `toArray()` function (VF-000) ([#231](https://github.com/voiceflow/libs/issues/231)) ([6740a40](https://github.com/voiceflow/libs/commit/6740a40f25f045f440a5cf0efd91eb6c90e27075))
|
|
170
|
+
|
|
171
|
+
# [7.24.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.23.0...@voiceflow/common@7.24.0) (2022-03-17)
|
|
172
|
+
|
|
173
|
+
### Features
|
|
174
|
+
|
|
175
|
+
* allow function as default value for map get (VF-000) ([#225](https://github.com/voiceflow/libs/issues/225)) ([64eb1e5](https://github.com/voiceflow/libs/commit/64eb1e5cd4ee8ce1492d7a47ecd8e559addd9cd9))
|
|
176
|
+
|
|
177
|
+
# [7.23.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.22.1...@voiceflow/common@7.23.0) (2022-03-16)
|
|
178
|
+
|
|
179
|
+
### Features
|
|
180
|
+
|
|
181
|
+
* map util, get value or set default (VF-000) ([#223](https://github.com/voiceflow/libs/issues/223)) ([601d17f](https://github.com/voiceflow/libs/commit/601d17f1ef74f3cb3e98930c38b4083f71929806))
|
|
182
|
+
|
|
183
|
+
## [7.22.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.22.0...@voiceflow/common@7.22.1) (2022-03-09)
|
|
184
|
+
|
|
185
|
+
### Bug Fixes
|
|
186
|
+
|
|
187
|
+
* lock dayjs version (VF-3038) ([880585e](https://github.com/voiceflow/libs/commit/880585e6b4582fc7087c40c80c88b7c0e6863518))
|
|
188
|
+
|
|
189
|
+
# [7.22.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.21.0...@voiceflow/common@7.22.0) (2022-03-01)
|
|
190
|
+
|
|
191
|
+
### Features
|
|
192
|
+
|
|
193
|
+
* reduce build time (VF-2968) ([#208](https://github.com/voiceflow/libs/issues/208)) ([aa2a41c](https://github.com/voiceflow/libs/commit/aa2a41c777f80f58e0f452551f18b1c967c545cb))
|
|
194
|
+
|
|
195
|
+
# [7.21.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.20.2...@voiceflow/common@7.21.0) (2022-02-16)
|
|
196
|
+
|
|
197
|
+
### Features
|
|
198
|
+
|
|
199
|
+
* reimplement deepMap and deepMapKeys to fix vite build (VF-000) ([#196](https://github.com/voiceflow/libs/issues/196)) ([fd1998f](https://github.com/voiceflow/libs/commit/fd1998fe5939783677a048f2c272e07ab5bad93d))
|
|
200
|
+
|
|
201
|
+
## [7.20.2](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.20.1...@voiceflow/common@7.20.2) (2022-02-13)
|
|
202
|
+
|
|
203
|
+
### Bug Fixes
|
|
204
|
+
|
|
205
|
+
* dep check dependency ([2f6cb51](https://github.com/voiceflow/libs/commit/2f6cb51f802dcf63e8e8c4cb7a6a8005ff318d08))
|
|
206
|
+
* remap object id strings (VF-2914) ([#192](https://github.com/voiceflow/libs/issues/192)) ([c9884b9](https://github.com/voiceflow/libs/commit/c9884b96b6a24af07eff8e1c7fb7f877846dbb24))
|
|
207
|
+
|
|
208
|
+
## [7.20.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.20.0...@voiceflow/common@7.20.1) (2022-02-11)
|
|
209
|
+
|
|
210
|
+
### Bug Fixes
|
|
211
|
+
|
|
212
|
+
* make all packages public on npm registry (VF-000) ([#194](https://github.com/voiceflow/libs/issues/194)) ([1b7c1d0](https://github.com/voiceflow/libs/commit/1b7c1d017adbd8695b3cf6e9921bae1de3cdbee8))
|
|
213
|
+
|
|
214
|
+
# [7.20.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.19.3...@voiceflow/common@7.20.0) (2022-02-10)
|
|
215
|
+
|
|
216
|
+
### Features
|
|
217
|
+
|
|
218
|
+
* improve typings, add object utils (VF-000) ([#191](https://github.com/voiceflow/libs/issues/191)) ([e91d812](https://github.com/voiceflow/libs/commit/e91d81274aade8cd218941330bcc2907dfcf636c))
|
|
219
|
+
|
|
220
|
+
## [7.19.3](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.19.2...@voiceflow/common@7.19.3) (2022-02-08)
|
|
221
|
+
|
|
222
|
+
### Bug Fixes
|
|
223
|
+
|
|
224
|
+
* fix types on inferUnion function ([#187](https://github.com/voiceflow/libs/issues/187)) ([7016607](https://github.com/voiceflow/libs/commit/701660780b325aac45e045fca4c8458d94e29c6b))
|
|
225
|
+
|
|
226
|
+
## [7.19.2](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.19.1...@voiceflow/common@7.19.2) (2022-02-08)
|
|
227
|
+
|
|
228
|
+
**Note:** Version bump only for package @voiceflow/common
|
|
229
|
+
|
|
230
|
+
## [7.19.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.19.0...@voiceflow/common@7.19.1) (2022-02-08)
|
|
231
|
+
|
|
232
|
+
**Note:** Version bump only for package @voiceflow/common
|
|
233
|
+
|
|
234
|
+
# [7.19.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.17.0...@voiceflow/common@7.19.0) (2022-02-07)
|
|
235
|
+
|
|
236
|
+
### Features
|
|
237
|
+
|
|
238
|
+
* shared types (VF-000) ([#177](https://github.com/voiceflow/libs/issues/177)) ([375d0c1](https://github.com/voiceflow/libs/commit/375d0c1d0e2ac58c0117feda85a439f2701a336d)), closes [#185](https://github.com/voiceflow/libs/issues/185) [#186](https://github.com/voiceflow/libs/issues/186)
|
|
239
|
+
|
|
240
|
+
## [7.18.2](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.18.1...@voiceflow/common@7.18.2) (2022-02-07)
|
|
241
|
+
|
|
242
|
+
### Bug Fixes
|
|
243
|
+
|
|
244
|
+
* union types generic (VF-000) ([#186](https://github.com/voiceflow/libs/issues/186)) ([bdc6825](https://github.com/voiceflow/libs/commit/bdc6825c709af78d6f124e8e71667109045c2030))
|
|
245
|
+
|
|
246
|
+
## [7.18.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.18.0...@voiceflow/common@7.18.1) (2022-02-07)
|
|
247
|
+
|
|
248
|
+
### Bug Fixes
|
|
249
|
+
|
|
250
|
+
* typescript build (VF-000) ([e057406](https://github.com/voiceflow/libs/commit/e057406930641e68500d2c87b55c8abbf939bb59))
|
|
251
|
+
* update typescript (VF-000) ([#185](https://github.com/voiceflow/libs/issues/185)) ([09645cc](https://github.com/voiceflow/libs/commit/09645cc96202e05e3722d358cbc4dc1d97058209))
|
|
252
|
+
|
|
253
|
+
# [7.18.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.17.0...@voiceflow/common@7.18.0) (2022-02-07)
|
|
254
|
+
|
|
255
|
+
### Features
|
|
256
|
+
|
|
257
|
+
* shared types (VF-000) ([#177](https://github.com/voiceflow/libs/issues/177)) ([3e1a206](https://github.com/voiceflow/libs/commit/3e1a2062599fea4c8b4961afcad25699742dd34f))
|
|
258
|
+
|
|
259
|
+
# [7.17.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.16.0...@voiceflow/common@7.17.0) (2022-02-01)
|
|
260
|
+
|
|
261
|
+
### Features
|
|
262
|
+
|
|
263
|
+
* added export line in constants file for dm (VF-2810) ([#182](https://github.com/voiceflow/libs/issues/182)) ([6009d8f](https://github.com/voiceflow/libs/commit/6009d8f84584b292a4cb8de31347deb0e74d32af))
|
|
264
|
+
|
|
265
|
+
# [7.16.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.15.4...@voiceflow/common@7.16.0) (2022-02-01)
|
|
266
|
+
|
|
267
|
+
### Features
|
|
268
|
+
|
|
269
|
+
* adding a 'dm_' variable to constants (VF-2810) ([#180](https://github.com/voiceflow/libs/issues/180)) ([75574a2](https://github.com/voiceflow/libs/commit/75574a25d92bb72700080021a80305bfa04cb237))
|
|
270
|
+
|
|
271
|
+
## [7.15.4](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.15.3...@voiceflow/common@7.15.4) (2022-01-24)
|
|
272
|
+
|
|
273
|
+
### Bug Fixes
|
|
274
|
+
|
|
275
|
+
* mapping and utilities (VF-2613) ([#175](https://github.com/voiceflow/libs/issues/175)) ([2d2e59d](https://github.com/voiceflow/libs/commit/2d2e59da6cd2076ed2b157d47731d521c0e78b7d))
|
|
276
|
+
|
|
277
|
+
## [7.15.3](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.15.2...@voiceflow/common@7.15.3) (2022-01-24)
|
|
278
|
+
|
|
279
|
+
### Bug Fixes
|
|
280
|
+
|
|
281
|
+
* utterance permutations (VF-000) ([#172](https://github.com/voiceflow/libs/issues/172)) ([c65566f](https://github.com/voiceflow/libs/commit/c65566ff0dcb826b941527ac8c8b190ef87c9c07))
|
|
282
|
+
|
|
283
|
+
## [7.15.2](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.15.1...@voiceflow/common@7.15.2) (2022-01-20)
|
|
284
|
+
|
|
285
|
+
### Bug Fixes
|
|
286
|
+
|
|
287
|
+
* updated murmurhash version, changed hash function and test file name (VF-2617) ([#170](https://github.com/voiceflow/libs/issues/170)) ([3faf037](https://github.com/voiceflow/libs/commit/3faf037a1ffc53c233ea0bc70a285b4b5d7bc9c7))
|
|
288
|
+
|
|
289
|
+
## [7.15.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.15.0...@voiceflow/common@7.15.1) (2022-01-20)
|
|
290
|
+
|
|
291
|
+
### Bug Fixes
|
|
292
|
+
|
|
293
|
+
* added murmurhash export ([#169](https://github.com/voiceflow/libs/issues/169)) ([06ade96](https://github.com/voiceflow/libs/commit/06ade96be821453327dd09a60593c5df3542b1ee))
|
|
294
|
+
|
|
295
|
+
# [7.15.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.14.0...@voiceflow/common@7.15.0) (2022-01-20)
|
|
296
|
+
|
|
297
|
+
### Features
|
|
298
|
+
|
|
299
|
+
* added a murmurhash3 hash method to common (VF-2617) ([#163](https://github.com/voiceflow/libs/issues/163)) ([29b47dc](https://github.com/voiceflow/libs/commit/29b47dc2b5c7eaa92ba68e0fa45d71755fee443e))
|
|
300
|
+
|
|
301
|
+
# [7.14.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.13.4...@voiceflow/common@7.14.0) (2022-01-19)
|
|
302
|
+
|
|
303
|
+
### Features
|
|
304
|
+
|
|
305
|
+
* add `hex2abc` function (VF-000) ([#167](https://github.com/voiceflow/libs/issues/167)) ([318c5d4](https://github.com/voiceflow/libs/commit/318c5d41bf204d7414c301558615d4d71642e8f8))
|
|
306
|
+
|
|
307
|
+
## [7.13.4](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.13.3...@voiceflow/common@7.13.4) (2022-01-14)
|
|
308
|
+
|
|
309
|
+
**Note:** Version bump only for package @voiceflow/common
|
|
310
|
+
|
|
311
|
+
## [7.13.3](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.13.2...@voiceflow/common@7.13.3) (2022-01-11)
|
|
312
|
+
|
|
313
|
+
**Note:** Version bump only for package @voiceflow/common
|
|
314
|
+
|
|
315
|
+
## [7.13.2](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.13.1...@voiceflow/common@7.13.2) (2022-01-06)
|
|
316
|
+
|
|
317
|
+
### Bug Fixes
|
|
318
|
+
|
|
319
|
+
* widen type of async action error ([96711d8](https://github.com/voiceflow/libs/commit/96711d81ef16a5e9b245b9a3f003428ebee7ff4d))
|
|
320
|
+
|
|
321
|
+
## [7.13.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.13.0...@voiceflow/common@7.13.1) (2022-01-06)
|
|
322
|
+
|
|
323
|
+
### Bug Fixes
|
|
324
|
+
|
|
325
|
+
* avoid recursive call on async action creation (VF-000) ([#145](https://github.com/voiceflow/libs/issues/145)) ([16c1efa](https://github.com/voiceflow/libs/commit/16c1efac09fe6c10e1d1974abb7069d7dd89be8e))
|
|
326
|
+
|
|
327
|
+
# [7.13.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.12.1...@voiceflow/common@7.13.0) (2022-01-06)
|
|
328
|
+
|
|
329
|
+
### Features
|
|
330
|
+
|
|
331
|
+
* add custom async error type ([#144](https://github.com/voiceflow/libs/issues/144)) ([cbf0d01](https://github.com/voiceflow/libs/commit/cbf0d01f1715cad65b2377123c3bcf5f3d3c9cd7))
|
|
332
|
+
|
|
333
|
+
## [7.12.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.12.0...@voiceflow/common@7.12.1) (2022-01-03)
|
|
334
|
+
|
|
335
|
+
### Bug Fixes
|
|
336
|
+
|
|
337
|
+
* filterAndRemoveLastValue (VF-000) ([ee55d99](https://github.com/voiceflow/libs/commit/ee55d9963b2f491696ab8643e78f166b9c6134e3))
|
|
338
|
+
|
|
339
|
+
# [7.12.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.11.0...@voiceflow/common@7.12.0) (2021-12-14)
|
|
340
|
+
|
|
341
|
+
### Features
|
|
342
|
+
|
|
343
|
+
* add safe normalized get all ([#139](https://github.com/voiceflow/libs/issues/139)) ([ee1ff19](https://github.com/voiceflow/libs/commit/ee1ff194d9a573f6865e959f79d7e2a48477a5c9))
|
|
344
|
+
|
|
345
|
+
# [7.11.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.10.0...@voiceflow/common@7.11.0) (2021-12-10)
|
|
346
|
+
|
|
347
|
+
### Features
|
|
348
|
+
|
|
349
|
+
* utils updates (VF-000) ([#134](https://github.com/voiceflow/libs/issues/134)) ([0d6f6a9](https://github.com/voiceflow/libs/commit/0d6f6a9f190b3c07fa93ff1728d2f77ca3826903))
|
|
350
|
+
|
|
351
|
+
# [7.10.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.9.0...@voiceflow/common@7.10.0) (2021-11-24)
|
|
352
|
+
|
|
353
|
+
### Features
|
|
354
|
+
|
|
355
|
+
* update noReply/noMatch types (VF-2014) ([#115](https://github.com/voiceflow/libs/issues/115)) ([abdd6b4](https://github.com/voiceflow/libs/commit/abdd6b4f301b48a2c1bca6402b88692b170fc4b2))
|
|
356
|
+
|
|
357
|
+
# [7.9.0](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.8.1...@voiceflow/common@7.9.0) (2021-11-23)
|
|
358
|
+
|
|
359
|
+
### Features
|
|
360
|
+
|
|
361
|
+
* add generate utils (VF-2339) ([#125](https://github.com/voiceflow/libs/issues/125)) ([e8d1739](https://github.com/voiceflow/libs/commit/e8d1739559a588967643fcdd7dbb9dbcc70c739c))
|
|
362
|
+
|
|
363
|
+
## [7.8.1](https://github.com/voiceflow/libs/compare/@voiceflow/common@7.8.0...@voiceflow/common@7.8.1) (2021-11-16)
|
|
364
|
+
|
|
365
|
+
### Bug Fixes
|
|
366
|
+
|
|
367
|
+
* testing with a fix commit ([99b0161](https://github.com/voiceflow/libs/commit/99b0161eeed29782c354be6f66f5ee89deecd6d3))
|
|
368
|
+
|
|
369
|
+
# 7.8.0 (2021-11-16)
|
|
370
|
+
|
|
371
|
+
### Features
|
|
372
|
+
|
|
373
|
+
* added common lib ([#122](https://github.com/voiceflow/libs/issues/122)) ([67a201e](https://github.com/voiceflow/libs/commit/67a201e7809d219fd9ccaae84d78afce1333fc65))
|
package/build/cjs/utils/id.js
CHANGED
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.remapObjectIDs = exports.objectID = exports.cuid = void 0;
|
|
7
|
-
const
|
|
7
|
+
const bson_1 = require("bson");
|
|
8
8
|
const cuid_1 = __importDefault(require("cuid"));
|
|
9
9
|
exports.cuid = cuid_1.default;
|
|
10
10
|
const object_1 = require("./object");
|
|
11
|
-
const objectID = () => new
|
|
11
|
+
const objectID = () => new bson_1.ObjectId().toHexString();
|
|
12
12
|
exports.objectID = objectID;
|
|
13
13
|
const remapObjectIDs = (object, lookupMap) => {
|
|
14
14
|
const map = lookupMap instanceof Map ? lookupMap : new Map(Object.entries(lookupMap));
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
3
|
+
const bson_1 = require("bson");
|
|
7
4
|
const deepMap_1 = require("./deepMap");
|
|
8
5
|
describe('Utils | object | deepMap', () => {
|
|
9
6
|
describe('deepMap()', () => {
|
|
@@ -20,8 +17,8 @@ describe('Utils | object | deepMap', () => {
|
|
|
20
17
|
expect((0, deepMap_1.deepMap)(['2', date], transform)).toEqual([4, date]);
|
|
21
18
|
});
|
|
22
19
|
it('transform objectID', () => {
|
|
23
|
-
const originalID = new
|
|
24
|
-
const transformedID = new
|
|
20
|
+
const originalID = new bson_1.ObjectId();
|
|
21
|
+
const transformedID = new bson_1.ObjectId();
|
|
25
22
|
const transform = (n) => (n === originalID ? transformedID : n);
|
|
26
23
|
const date = new Date();
|
|
27
24
|
expect((0, deepMap_1.deepMap)(['2', date, originalID], transform)).toEqual(['2', date, transformedID]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/utils/protocol.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/utils/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,mBAAmB,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEjF,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK;IAClD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,CAAC,CAAC;CACV;AAED,eAAO,MAAM,YAAY,+CAAyB,CAAC;AAEnD,eAAO,MAAM,iBAAiB,iEAA2D,MAAM,eAAe,IAAI,iCAC5E,CAAC;AAEvC,eAAO,MAAM,WAAW,aACX,MAAM,EAAE,YACZ,MAAM,KAAG,MACY,CAAC;AAE/B,qBAAa,OAAO,CAAC,CAAC,SAAS,MAAM;IAChB,SAAS,EAAE,CAAC,EAAE;IAAS,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,MAAM;gBAAnE,SAAS,EAAE,CAAC,EAAE,EAAS,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,MAAM;IAEtF,YAAY;IAIZ,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,MAAM;CAGtF;AAED,oBAAY,aAAa,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;AAE9G,eAAO,MAAM,aAAa,2EAA4E,MAAM,eAAkC,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.createChannel = exports.Channel = exports.typeFactory = exports.createAsyncAction = exports.createAction = void 0;
|
|
7
|
-
const typescript_fsa_1 =
|
|
8
|
-
exports.createAction = (0, typescript_fsa_1.
|
|
4
|
+
const typescript_fsa_1 = require("typescript-fsa");
|
|
5
|
+
exports.createAction = (0, typescript_fsa_1.actionCreatorFactory)();
|
|
9
6
|
const createAsyncAction = (type, commonMeta) => exports.createAction.async(type, commonMeta);
|
|
10
7
|
exports.createAsyncAction = createAsyncAction;
|
|
11
8
|
const typeFactory = (...parts) => (name) => [...parts, name].join('.');
|
package/build/esm/utils/id.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ObjectId } from 'bson';
|
|
2
2
|
import { deepMap, deepMapKeys } from './deepMap.js';
|
|
3
3
|
describe('Utils | object | deepMap', () => {
|
|
4
4
|
describe('deepMap()', () => {
|
|
@@ -15,8 +15,8 @@ describe('Utils | object | deepMap', () => {
|
|
|
15
15
|
expect(deepMap(['2', date], transform)).toEqual([4, date]);
|
|
16
16
|
});
|
|
17
17
|
it('transform objectID', () => {
|
|
18
|
-
const originalID = new
|
|
19
|
-
const transformedID = new
|
|
18
|
+
const originalID = new ObjectId();
|
|
19
|
+
const transformedID = new ObjectId();
|
|
20
20
|
const transform = (n) => (n === originalID ? transformedID : n);
|
|
21
21
|
const date = new Date();
|
|
22
22
|
expect(deepMap(['2', date, originalID], transform)).toEqual(['2', date, transformedID]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/utils/protocol.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/utils/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,mBAAmB,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEjF,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK;IAClD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,CAAC,CAAC;CACV;AAED,eAAO,MAAM,YAAY,+CAAyB,CAAC;AAEnD,eAAO,MAAM,iBAAiB,iEAA2D,MAAM,eAAe,IAAI,iCAC5E,CAAC;AAEvC,eAAO,MAAM,WAAW,aACX,MAAM,EAAE,YACZ,MAAM,KAAG,MACY,CAAC;AAE/B,qBAAa,OAAO,CAAC,CAAC,SAAS,MAAM;IAChB,SAAS,EAAE,CAAC,EAAE;IAAS,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,MAAM;gBAAnE,SAAS,EAAE,CAAC,EAAE,EAAS,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,MAAM;IAEtF,YAAY;IAIZ,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,MAAM;CAGtF;AAED,oBAAY,aAAa,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;AAE9G,eAAO,MAAM,aAAa,2EAA4E,MAAM,eAAkC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import actionCreatorFactory from 'typescript-fsa';
|
|
1
|
+
import { actionCreatorFactory } from 'typescript-fsa';
|
|
2
2
|
export const createAction = actionCreatorFactory();
|
|
3
3
|
export const createAsyncAction = (type, commonMeta) => createAction.async(type, commonMeta);
|
|
4
4
|
export const typeFactory = (...parts) => (name) => [...parts, name].join('.');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/common",
|
|
3
3
|
"description": "Junk drawer of utility functions",
|
|
4
|
-
"version": "8.2.
|
|
4
|
+
"version": "8.2.7-RC1",
|
|
5
5
|
"author": "Voiceflow",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/voiceflow/libs/issues"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@types/crypto-js": "^4.0.2",
|
|
11
11
|
"@types/shallowequal": "^1.1.1",
|
|
12
|
-
"bson
|
|
12
|
+
"bson": "^6.2.0",
|
|
13
13
|
"crypto-js": "^4.2.0",
|
|
14
14
|
"cuid": "^2.1.8",
|
|
15
15
|
"dayjs": "1.10.7",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"main": "build/cjs/index.js",
|
|
37
37
|
"module": "build/esm/index.js",
|
|
38
38
|
"publishConfig": {
|
|
39
|
-
"access": "public"
|
|
39
|
+
"access": "public",
|
|
40
|
+
"types": "build/cjs/index.d.ts"
|
|
40
41
|
},
|
|
41
42
|
"repository": {
|
|
42
43
|
"type": "git",
|
|
@@ -58,6 +59,5 @@
|
|
|
58
59
|
"test:dependencies": "yarn g:depcheck",
|
|
59
60
|
"test:unit": "yarn g:jest"
|
|
60
61
|
},
|
|
61
|
-
"types": "build/cjs/index.d.ts"
|
|
62
|
-
|
|
63
|
-
}
|
|
62
|
+
"types": "build/cjs/index.d.ts"
|
|
63
|
+
}
|