data-restructor 3.4.0 → 3.4.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/.auto-changelog +9 -0
- package/.auto-changelog-template.hbs +36 -0
- package/CHANGELOG.md +114 -31
- package/Commands.md +1 -0
- package/README.md +5 -0
- package/coverage/coverage-summary.json +3 -3
- package/coverage/datarestructor.js.html +133 -133
- package/coverage/describedfield.js.html +45 -45
- package/coverage/index.html +1 -1
- package/coverage/templateResolver.js.html +26 -26
- package/devdist/datarestructor-ie.js +53 -58
- package/devdist/datarestructor.js +35 -42
- package/devdist/describedfield-ie.js +10 -12
- package/devdist/describedfield.js +8 -10
- package/devdist/templateResolver-ie.js +22 -26
- package/devdist/templateResolver.js +11 -16
- package/dist/datarestructor-ie.js +1 -1
- package/dist/datarestructor-ie.js.map +1 -1
- package/dist/datarestructor.js +1 -1
- package/dist/datarestructor.js.map +1 -1
- package/dist/describedfield-ie.js +1 -1
- package/dist/describedfield-ie.js.map +1 -1
- package/dist/describedfield.js +1 -1
- package/dist/describedfield.js.map +1 -1
- package/dist/templateResolver-ie.js +1 -1
- package/dist/templateResolver-ie.js.map +1 -1
- package/dist/templateResolver.js +1 -1
- package/dist/templateResolver.js.map +1 -1
- package/docs/datarestructor.js.html +1 -1
- package/docs/describedfield.js.html +1 -1
- package/docs/index.html +6 -1
- package/docs/module-datarestructor.DescribedEntryCreator.html +94 -94
- package/docs/module-datarestructor.PropertyStructureDescriptionBuilder.html +1 -1
- package/docs/module-datarestructor.Restructor.html +1 -1
- package/docs/module-datarestructor.Transform.html +605 -605
- package/docs/module-datarestructor.html +959 -995
- package/docs/module-described_field.DescribedDataFieldBuilder.html +1 -1
- package/docs/module-described_field.DescribedDataFieldGroup.html +1 -1
- package/docs/module-described_field.html +1 -37
- package/docs/module-template_resolver.Resolver.html +167 -167
- package/docs/module-template_resolver.html +1 -37
- package/docs/templateResolver.js.html +1 -1
- package/package.json +10 -6
- package/renovate.json +0 -6
package/.auto-changelog
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## References
|
|
6
|
+
|
|
7
|
+
- [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
8
|
+
- [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
|
|
9
|
+
- [`auto-changelog`](https://github.com/CookPete/auto-changelog)
|
|
10
|
+
|
|
11
|
+
{{#each releases}}
|
|
12
|
+
{{#if tag}}
|
|
13
|
+
{{#if href}}
|
|
14
|
+
## [{{title}}]({{href}}) ({{niceDate}})
|
|
15
|
+
{{else}}
|
|
16
|
+
## {{title}} ({{niceDate}})
|
|
17
|
+
{{/if}}
|
|
18
|
+
{{else}}
|
|
19
|
+
## [{{title}}](https://github.com/JohT/data-restructor-js/compare/{{diff}}.master) (upcoming)
|
|
20
|
+
{{/if}}
|
|
21
|
+
|
|
22
|
+
{{#if summary}}
|
|
23
|
+
{{summary}}
|
|
24
|
+
{{/if}}
|
|
25
|
+
|
|
26
|
+
{{! List merges except for dependency updates }}
|
|
27
|
+
{{#commit-list merges heading='### Changes' exclude='(Update dependency .+to .+\d+)|(Update .+to .+\d+)'}}
|
|
28
|
+
- {{message}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}
|
|
29
|
+
{{/commit-list}}
|
|
30
|
+
|
|
31
|
+
{{! List merges with `Update dependency ` somewhere in the message }}
|
|
32
|
+
{{#commit-list merges heading='### Dependency Updates' message='(Update dependency .+to .+\d+)|(Update .+to .+\d+)'}}
|
|
33
|
+
- {{message}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}
|
|
34
|
+
{{/commit-list}}
|
|
35
|
+
|
|
36
|
+
{{/each}}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,29 +1,102 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## References
|
|
6
|
+
|
|
7
|
+
- [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
8
|
+
- [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
|
|
9
|
+
- [`auto-changelog`](https://github.com/CookPete/auto-changelog)
|
|
10
|
+
|
|
11
|
+
## [v3.4.1](https://github.com/JohT/data-restructor-js/compare/v3.4.0...master) (upcoming)
|
|
12
|
+
|
|
13
|
+
### Changes
|
|
14
|
+
|
|
15
|
+
- Pin dependency auto-changelog to 2.4.0 [`#141`](https://github.com/JohT/data-restructor-js/pull/141)
|
|
16
|
+
- Generate CHANGELOG.md using auto-changelog [`#140`](https://github.com/JohT/data-restructor-js/pull/140)
|
|
17
|
+
- Update/node-18 [`#132`](https://github.com/JohT/data-restructor-js/pull/132)
|
|
18
|
+
|
|
19
|
+
### Dependency Updates
|
|
20
|
+
|
|
21
|
+
- Update dependency eslint to v8.35.0 [`#139`](https://github.com/JohT/data-restructor-js/pull/139)
|
|
22
|
+
- Update dependency jsdoc to v4.0.2 [`#137`](https://github.com/JohT/data-restructor-js/pull/137)
|
|
23
|
+
- Update dependency jsdoc to v4.0.1 [`#136`](https://github.com/JohT/data-restructor-js/pull/136)
|
|
24
|
+
- Update dependency parcel to v2.8.3 [`#134`](https://github.com/JohT/data-restructor-js/pull/134)
|
|
25
|
+
- Update dependency eslint to v8.34.0 [`#135`](https://github.com/JohT/data-restructor-js/pull/135)
|
|
26
|
+
- Update dependency lmdb to v2.7.9 [`#131`](https://github.com/JohT/data-restructor-js/pull/131)
|
|
27
|
+
- Update dependency lmdb to v2.7.8 [`#130`](https://github.com/JohT/data-restructor-js/pull/130)
|
|
28
|
+
- Update dependency lmdb to v2.7.7 [`#129`](https://github.com/JohT/data-restructor-js/pull/129)
|
|
29
|
+
- Update dependency eslint to v8.32.0 [`#124`](https://github.com/JohT/data-restructor-js/pull/124)
|
|
30
|
+
- Update dependency lmdb to v2.7.2 [`#119`](https://github.com/JohT/data-restructor-js/pull/119)
|
|
31
|
+
- Update dependency lmdb to v2.7.0 [`#114`](https://github.com/JohT/data-restructor-js/pull/114)
|
|
32
|
+
- Update dependency eslint to v8.27.0 [`#113`](https://github.com/JohT/data-restructor-js/pull/113)
|
|
33
|
+
- Update dependency jsdoc to v4 [`#112`](https://github.com/JohT/data-restructor-js/pull/112)
|
|
34
|
+
|
|
35
|
+
## [v3.4.0](https://github.com/JohT/data-restructor-js/compare/v3.3.4...v3.4.0) (31 October 2022)
|
|
36
|
+
|
|
37
|
+
### Changes
|
|
38
|
+
|
|
39
|
+
- resolve markdown linter warnings [`#110`](https://github.com/JohT/data-restructor-js/pull/110)
|
|
40
|
+
- Fix build error [`#91`](https://github.com/JohT/data-restructor-js/pull/91)
|
|
41
|
+
- Auto commit with protected branch [`#55`](https://github.com/JohT/data-restructor-js/pull/55)
|
|
42
|
+
- issue #44 further simplify auto commit on push [`#54`](https://github.com/JohT/data-restructor-js/pull/54)
|
|
43
|
+
- Simplify auto commit on push [`#51`](https://github.com/JohT/data-restructor-js/pull/51)
|
|
44
|
+
- Also consider auto commit author [`#49`](https://github.com/JohT/data-restructor-js/pull/49)
|
|
45
|
+
- Auto commit build artifacts on push [`#47`](https://github.com/JohT/data-restructor-js/pull/47)
|
|
46
|
+
- Auto commit build artifacts only on push [`#46`](https://github.com/JohT/data-restructor-js/pull/46)
|
|
47
|
+
- Automatically push Continuous Integration build artifacts when Pull Request is merged [`#45`](https://github.com/JohT/data-restructor-js/pull/45)
|
|
48
|
+
- Automate MergerJS [`#43`](https://github.com/JohT/data-restructor-js/pull/43)
|
|
49
|
+
- Pin dependency jasmine to v3.7.0 [`#17`](https://github.com/JohT/data-restructor-js/pull/17)
|
|
50
|
+
- Pin dependencies [`#16`](https://github.com/JohT/data-restructor-js/pull/16)
|
|
51
|
+
- Configure Renovate [`#15`](https://github.com/JohT/data-restructor-js/pull/15)
|
|
52
|
+
|
|
53
|
+
### Dependency Updates
|
|
54
|
+
|
|
55
|
+
- Update Node.js to v18 [`#108`](https://github.com/JohT/data-restructor-js/pull/108)
|
|
56
|
+
- Update dependency eslint to v8.26.0 [`#107`](https://github.com/JohT/data-restructor-js/pull/107)
|
|
57
|
+
- Update dependency eslint to v8.24.0 [`#103`](https://github.com/JohT/data-restructor-js/pull/103)
|
|
58
|
+
- Update dependency eslint to v8.23.1 [`#101`](https://github.com/JohT/data-restructor-js/pull/101)
|
|
59
|
+
- Update dependency inquirer to v9.1.1 [`#99`](https://github.com/JohT/data-restructor-js/pull/99)
|
|
60
|
+
- Update dependency eslint to v8.22.0 [`#97`](https://github.com/JohT/data-restructor-js/pull/97)
|
|
61
|
+
- Update dependency inquirer to v9.1.0 [`#96`](https://github.com/JohT/data-restructor-js/pull/96)
|
|
62
|
+
- Update dependency eslint to v8.21.0 [`#95`](https://github.com/JohT/data-restructor-js/pull/95)
|
|
63
|
+
- Update dependency jsdoc to v3.6.11 [`#93`](https://github.com/JohT/data-restructor-js/pull/93)
|
|
64
|
+
- Update dependency eslint to v8.19.0 [`#88`](https://github.com/JohT/data-restructor-js/pull/88)
|
|
65
|
+
- Update dependency inquirer to v9 [`#85`](https://github.com/JohT/data-restructor-js/pull/85)
|
|
66
|
+
- Update github/codeql-action action to v2 [`#75`](https://github.com/JohT/data-restructor-js/pull/75)
|
|
67
|
+
- Update actions/upload-artifact action to v3 [`#67`](https://github.com/JohT/data-restructor-js/pull/67)
|
|
68
|
+
- Update actions/setup-node action to v3 [`#64`](https://github.com/JohT/data-restructor-js/pull/64)
|
|
69
|
+
- Update actions/checkout action to v3 [`#66`](https://github.com/JohT/data-restructor-js/pull/66)
|
|
70
|
+
- Update dependency node-forge to 1.0.0 [SECURITY] [`#62`](https://github.com/JohT/data-restructor-js/pull/62)
|
|
71
|
+
- Update dependency nanoid to 3.1.31 [SECURITY] [`#61`](https://github.com/JohT/data-restructor-js/pull/61)
|
|
72
|
+
- Update dependency jasmine to v4 [`#41`](https://github.com/JohT/data-restructor-js/pull/41)
|
|
73
|
+
- Update dependency istanbul-badges-readme to v1.8.1 [`#37`](https://github.com/JohT/data-restructor-js/pull/37)
|
|
74
|
+
- Update dependency eslint to v8.4.0 [`#35`](https://github.com/JohT/data-restructor-js/pull/35)
|
|
75
|
+
- Update Node.js to v16 [`#30`](https://github.com/JohT/data-restructor-js/pull/30)
|
|
76
|
+
- Update Node.js to v14 [`#22`](https://github.com/JohT/data-restructor-js/pull/22)
|
|
77
|
+
- Update dependency parcel to v2.0.0-rc.0 [`#19`](https://github.com/JohT/data-restructor-js/pull/19)
|
|
78
|
+
- Update dependency jasmine to v3.9.0 [`#21`](https://github.com/JohT/data-restructor-js/pull/21)
|
|
79
|
+
- Update dependency eslint to v7.32.0 [`#20`](https://github.com/JohT/data-restructor-js/pull/20)
|
|
80
|
+
|
|
81
|
+
<!-- auto-changelog-above -->
|
|
9
82
|
### Automation
|
|
10
83
|
|
|
11
84
|
- [#42](https://github.com/JohT/data-restructor-js/issues/42) The command `npm run merger` is now able to run automatically.
|
|
12
85
|
- [#44](https://github.com/JohT/data-restructor-js/issues/44) Push Continuous Integration build artifacts into the repository.
|
|
13
86
|
|
|
14
|
-
##
|
|
87
|
+
## [v3.3.4](https://github.com/JohT/data-restructor-js/compare/v3.3.3...v3.3.4) Remove duplicate groups within recursion (17 June 2021)
|
|
15
88
|
|
|
16
89
|
### Fixes
|
|
17
90
|
|
|
18
91
|
- #12 Zero recursion duplication should be possible
|
|
19
92
|
|
|
20
|
-
##
|
|
93
|
+
## [v3.3.3](https://github.com/JohT/data-restructor-js/compare/v3.3.2...v3.3.3) IE support fix (6 June 2021)
|
|
21
94
|
|
|
22
95
|
### Fixes
|
|
23
96
|
|
|
24
97
|
- Use classic property definitions idiom instead of [ES6 PropertyShorthand](http://es6-features.org/#PropertyShorthand) for internet explorer (IE) support.
|
|
25
98
|
|
|
26
|
-
##
|
|
99
|
+
## [v3.3.2](https://github.com/JohT/data-restructor-js/compare/v3.3.1...v3.3.2) Encourage Open Source Contributing (6 June 2021)
|
|
27
100
|
|
|
28
101
|
### Features
|
|
29
102
|
|
|
@@ -35,13 +108,18 @@ diverse, inclusive, and healthy community.
|
|
|
35
108
|
- [PARCEL v2](https://v2.parceljs.org) migration
|
|
36
109
|
- Update dependency versions
|
|
37
110
|
|
|
38
|
-
|
|
111
|
+
### Changes
|
|
112
|
+
|
|
113
|
+
- Setup CodeQL Analysis [`#10`](https://github.com/JohT/data-restructor-js/pull/10)
|
|
114
|
+
- Encourage Open Source Contribution [`#9`](https://github.com/JohT/data-restructor-js/pull/9)
|
|
115
|
+
|
|
116
|
+
## [v3.3.1](https://github.com/JohT/data-restructor-js/compare/v3.3.0...v3.3.1) Output folder fixed (9 May 2021)
|
|
39
117
|
|
|
40
118
|
### Fixes
|
|
41
119
|
|
|
42
120
|
- Minified output destination fixed. Minified files are now correctly written into the "dist" folder (instead of "dev").
|
|
43
121
|
|
|
44
|
-
##
|
|
122
|
+
## [v3.3.0](https://github.com/JohT/data-restructor-js/compare/v3.2.0...v3.3.0) Merged source files for direct use without module system (9 May 2021)
|
|
45
123
|
|
|
46
124
|
### Features
|
|
47
125
|
|
|
@@ -50,32 +128,37 @@ diverse, inclusive, and healthy community.
|
|
|
50
128
|
- [README.md](README.md#credits) now contains a lists of credits
|
|
51
129
|
- [COMMANDS.MD](COMMANDS.MD#most-important-commands-for-development) now contains a separate list for commands, that are used on a regular basis
|
|
52
130
|
|
|
53
|
-
|
|
131
|
+
### Changes
|
|
132
|
+
|
|
133
|
+
- Support direct use of modules in "dist" and "devdist" folder [`#8`](https://github.com/JohT/data-restructor-js/pull/8)
|
|
134
|
+
|
|
135
|
+
## [v3.2.0](https://github.com/JohT/data-restructor-js/compare/v3.1.0...v3.2.0) Configurable recursion depth above which duplications will be removed (21 April 2021)
|
|
54
136
|
|
|
55
137
|
### Features
|
|
56
138
|
|
|
57
|
-
-
|
|
139
|
+
- Configurable recursion depth above which duplications will be removed [`#6`](https://github.com/JohT/data-restructor-js/pull/6)
|
|
58
140
|
|
|
59
|
-
##
|
|
141
|
+
## [v3.1.0](https://github.com/JohT/data-restructor-js/compare/v3.0.0...v3.1.0) Configurable recursion depth for sub groups (21 March 2021)
|
|
60
142
|
|
|
61
143
|
### Features
|
|
62
144
|
|
|
63
|
-
- Configurable
|
|
145
|
+
- Configurable sub group level depth [`#4`](https://github.com/JohT/data-restructor-js/pull/4)
|
|
64
146
|
- Improved JSDoc structure and contents
|
|
65
147
|
|
|
66
148
|
### Fixes
|
|
67
149
|
|
|
68
|
-
- [
|
|
150
|
+
- Group hierarchy limited to 1 since v3.0.0 [`#3`](https://github.com/JohT/data-restructor-js/issues/3)
|
|
69
151
|
|
|
70
152
|
### Deprecated
|
|
71
153
|
|
|
72
154
|
- `datarestructor.Restructor.processJsonUsingDescriptions(jsonData, descriptions)` is deprecated.
|
|
73
155
|
Please use `new datarestructor.Transform(descriptions).processJson(jsonData)` instead.
|
|
74
156
|
|
|
75
|
-
##
|
|
157
|
+
## [v3.0.0](https://github.com/JohT/data-restructor-js/compare/v2.3.0...v3.0.0) Introducing DescribedDataField (13 March 2021)
|
|
76
158
|
|
|
77
159
|
### Features
|
|
78
160
|
|
|
161
|
+
- Introducing DescribedDataField [`#2`](https://github.com/JohT/data-restructor-js/pull/2)
|
|
79
162
|
- Pure, non cyclic data result that can be converted to json without using additional functions
|
|
80
163
|
|
|
81
164
|
### Breaking Changes
|
|
@@ -85,11 +168,11 @@ Please use `new datarestructor.Transform(descriptions).processJson(jsonData)` in
|
|
|
85
168
|
- DescribedEntry function "resolveTemplate" is removed. "templateResolver.js" can be used instead.
|
|
86
169
|
- DescribedEntry function "publicFieldsJson" is removed. `JSON.stringify(describedEntry.describedField)` can be used instead.
|
|
87
170
|
|
|
88
|
-
##
|
|
171
|
+
## [v2.3.0](https://github.com/JohT/data-restructor-js/compare/v2.2.0...v2.3.0) Continuous Integration (6 February 2021)
|
|
89
172
|
|
|
90
173
|
### Features
|
|
91
174
|
|
|
92
|
-
- Continuous Integration using GitHub Actions
|
|
175
|
+
- Continuous Integration using GitHub Actions introduced [`#1`](https://github.com/JohT/data-restructor-js/pull/1)
|
|
93
176
|
- Build using nodes package manager (npm)
|
|
94
177
|
- Bundle (minification,...) using Parcel Bundler
|
|
95
178
|
- Automated already existing unit tests using Jasmine
|
|
@@ -98,7 +181,7 @@ Please use `new datarestructor.Transform(descriptions).processJson(jsonData)` in
|
|
|
98
181
|
- Static code analysis using ESLint
|
|
99
182
|
- Updated documentation
|
|
100
183
|
|
|
101
|
-
##
|
|
184
|
+
## [v2.2.0](https://github.com/JohT/data-restructor-js/compare/v2.1.0...v2.2.0) Resolving template with described fields (9 January 2021)
|
|
102
185
|
|
|
103
186
|
### Features
|
|
104
187
|
|
|
@@ -141,7 +224,7 @@ but also the described fields directly. Based on the JSON below, the resolver wo
|
|
|
141
224
|
}
|
|
142
225
|
```
|
|
143
226
|
|
|
144
|
-
##
|
|
227
|
+
## [v2.1.0](https://github.com/JohT/data-restructor-js/compare/v2.0.0...v2.1.0) New optional fields "abbreviation" and "image" (25 December 2020)
|
|
145
228
|
|
|
146
229
|
### Features
|
|
147
230
|
|
|
@@ -153,7 +236,7 @@ but also the described fields directly. Based on the JSON below, the resolver wo
|
|
|
153
236
|
|
|
154
237
|
- Some minor refactoring
|
|
155
238
|
|
|
156
|
-
##
|
|
239
|
+
## [v2.0.0](https://github.com/JohT/data-restructor-js/compare/v1.2.0...v2.0.0) Added "publicFieldsJson" to "DescribedEntry" (12 December 2020)
|
|
157
240
|
|
|
158
241
|
### Features
|
|
159
242
|
|
|
@@ -193,7 +276,7 @@ Prior to this release, the following error occurred when calling `JSON.stringify
|
|
|
193
276
|
}
|
|
194
277
|
```
|
|
195
278
|
|
|
196
|
-
##
|
|
279
|
+
## [v1.2.0](https://github.com/JohT/data-restructor-js/compare/v1.1.0...v1.2.0) Resolving template containing properties of the described entry as variables (29 November 2020)
|
|
197
280
|
|
|
198
281
|
### Features
|
|
199
282
|
|
|
@@ -218,18 +301,18 @@ var resolved = describedEntry.resolveTemplate("{{displayName}}: {{value}}");
|
|
|
218
301
|
// resolved is: "Name: Smith"
|
|
219
302
|
```
|
|
220
303
|
|
|
221
|
-
##
|
|
304
|
+
## [v1.1.0](https://github.com/JohT/data-restructor-js/compare/v1.0.0...v1.1.0) Joining and renaming groups (8 November 2020)
|
|
222
305
|
|
|
223
306
|
### Features
|
|
224
307
|
|
|
225
|
-
- Group destination name and joining
|
|
308
|
+
- [Group destination name and joining](https://github.com/JohT/data-restructor-js/commit/534c368bcb835c110e1255508ed44c790972955c)
|
|
226
309
|
- Groups can now be renamed, when they get moved to another destination.
|
|
227
310
|
- If more than one source group (array) is moved into a single destination, they get joined.
|
|
228
311
|
Previously, only the last one remained, which made it impossible to structure data within one single (e.g. main) entry.
|
|
229
|
-
- Debug mode introduced
|
|
230
|
-
- Minor
|
|
312
|
+
- [Debug mode introduced](https://github.com/JohT/data-restructor-js/commit/72232e7f23ced9655c1d2693a3a5b3163c312221)
|
|
313
|
+
- [Minor refactoring](https://github.com/JohT/data-restructor-js/commit/14094fe247c1c1551ff518a1378a26b0cfc074c9)
|
|
231
314
|
|
|
232
|
-
##
|
|
315
|
+
## [v1.0.0](https://github.com/JohT/data-restructor-js/releases/tag/v1.0.0) Initial Release (2020-10-25)
|
|
233
316
|
|
|
234
317
|
### Features
|
|
235
318
|
|
|
@@ -237,4 +320,4 @@ var resolved = describedEntry.resolveTemplate("{{displayName}}: {{value}}");
|
|
|
237
320
|
- Multiple transformation steps including flattening, removing duplicates, grouping, ...
|
|
238
321
|
- Takes descriptions that reflect the incoming structure and define the standardized output
|
|
239
322
|
- Reusable and flexible
|
|
240
|
-
- Supports most browser including
|
|
323
|
+
- Supports most browser including IE 5
|
package/Commands.md
CHANGED
|
@@ -6,6 +6,7 @@ Overview of the commands to test, run and build this project as well as those th
|
|
|
6
6
|
|
|
7
7
|
- `npm install` Installs all dependencies and creates the folder `node_modules`, that is needed for all following commands.
|
|
8
8
|
- `npm run package` Ready to publish build incl. test, coverage, doc generation, dev+prod build
|
|
9
|
+
- `npm run changelog` Update CHANGELOG.md
|
|
9
10
|
- `npm login` + `npm publish` To publish a new release. Be sure to run npm run package first.
|
|
10
11
|
|
|
11
12
|
## Commands to test, run and build the project
|
package/README.md
CHANGED
|
@@ -498,6 +498,11 @@ That leads to recursion and duplication, that need to be limited. This can be co
|
|
|
498
498
|
- **setMaxRecursionDepth(number)** numeric value that defines the maximum recursion depth
|
|
499
499
|
- **setRemoveDuplicationAboveRecursionDepth(number)** numeric value that defines the recursion depth, above which duplications inside groups will be removed.
|
|
500
500
|
|
|
501
|
+
## Related blog articles
|
|
502
|
+
|
|
503
|
+
- [Most effective ways to push within GitHub Actions](https://joht.github.io/johtizen/build/2022/01/20/github-actions-push-into-repository.html)
|
|
504
|
+
- [Continuous Integration for JavaScript with npm](https://joht.github.io/johtizen/build/2021/02/21/continuous-integration-javascript.html)
|
|
505
|
+
|
|
501
506
|
## References
|
|
502
507
|
|
|
503
508
|
- [Mozilla MDN web docs - polyfill for 'Array.filter'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter#Polyfill) for browser compatibility
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{"total": {"lines":{"total":461,"covered":455,"skipped":0,"pct":98.7},"statements":{"total":470,"covered":462,"skipped":0,"pct":98.3},"functions":{"total":108,"covered":106,"skipped":0,"pct":98.15},"branches":{"total":167,"covered":158,"skipped":0,"pct":94.61}}
|
|
2
|
-
,"/
|
|
3
|
-
,"/
|
|
4
|
-
,"/
|
|
2
|
+
,"/Users/johnny/Repositories/git/data-restructor-js/src/js/datarestructor.js": {"lines":{"total":340,"covered":335,"skipped":0,"pct":98.53},"functions":{"total":76,"covered":75,"skipped":0,"pct":98.68},"statements":{"total":349,"covered":342,"skipped":0,"pct":97.99},"branches":{"total":128,"covered":119,"skipped":0,"pct":92.97}}
|
|
3
|
+
,"/Users/johnny/Repositories/git/data-restructor-js/src/js/describedfield.js": {"lines":{"total":70,"covered":69,"skipped":0,"pct":98.57},"functions":{"total":22,"covered":21,"skipped":0,"pct":95.45},"statements":{"total":70,"covered":69,"skipped":0,"pct":98.57},"branches":{"total":21,"covered":21,"skipped":0,"pct":100}}
|
|
4
|
+
,"/Users/johnny/Repositories/git/data-restructor-js/src/js/templateResolver.js": {"lines":{"total":51,"covered":51,"skipped":0,"pct":100},"functions":{"total":10,"covered":10,"skipped":0,"pct":100},"statements":{"total":51,"covered":51,"skipped":0,"pct":100},"branches":{"total":18,"covered":18,"skipped":0,"pct":100}}
|
|
5
5
|
}
|