data-restructor 3.4.0 → 3.4.2
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/.github/workflows/codeql-analysis.yml +1 -1
- package/.github/workflows/continuous-integration.yaml +10 -1
- package/CHANGELOG.md +136 -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 +693 -1
- package/dist/datarestructor-ie.js.map +1 -1
- package/dist/datarestructor.js +687 -1
- package/dist/datarestructor.js.map +1 -1
- package/dist/describedfield-ie.js +142 -1
- package/dist/describedfield-ie.js.map +1 -1
- package/dist/describedfield.js +142 -1
- package/dist/describedfield.js.map +1 -1
- package/dist/templateResolver-ie.js +82 -1
- package/dist/templateResolver-ie.js.map +1 -1
- package/dist/templateResolver.js +76 -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 +13 -9
- 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}}
|
|
@@ -23,9 +23,11 @@ jobs:
|
|
|
23
23
|
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
|
|
24
24
|
CI_COMMIT_AUTHOR: ${{ github.event.repository.name }} Continuous Integration
|
|
25
25
|
steps:
|
|
26
|
-
- uses: actions/checkout@
|
|
26
|
+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
|
27
27
|
with:
|
|
28
28
|
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
|
|
29
|
+
- name: Get GIT tags for auto-changelog generation (startingVersion config option)
|
|
30
|
+
run: git fetch --tags origin
|
|
29
31
|
|
|
30
32
|
# Build
|
|
31
33
|
- uses: actions/setup-node@v3
|
|
@@ -51,6 +53,13 @@ jobs:
|
|
|
51
53
|
path: docs
|
|
52
54
|
retention-days: 14
|
|
53
55
|
if-no-files-found: error
|
|
56
|
+
- name: Archive CHANGELOG.md
|
|
57
|
+
uses: actions/upload-artifact@v3
|
|
58
|
+
with:
|
|
59
|
+
name: changelog
|
|
60
|
+
path: CHANGELOG.md
|
|
61
|
+
retention-days: 14
|
|
62
|
+
if-no-files-found: error
|
|
54
63
|
- name: Archive build artifacts
|
|
55
64
|
uses: actions/upload-artifact@v3
|
|
56
65
|
with:
|
package/CHANGELOG.md
CHANGED
|
@@ -1,29 +1,124 @@
|
|
|
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.2](https://github.com/JohT/data-restructor-js/compare/v3.4.1...master) (upcoming)
|
|
12
|
+
|
|
13
|
+
### Changes
|
|
14
|
+
|
|
15
|
+
- Add CHANGELOG.md regeneration to continuous integration pipeline [`#142`](https://github.com/JohT/data-restructor-js/pull/142)
|
|
16
|
+
|
|
17
|
+
### Dependency Updates
|
|
18
|
+
|
|
19
|
+
- Update actions/checkout digest to b4ffde6 [`#185`](https://github.com/JohT/data-restructor-js/pull/185)
|
|
20
|
+
- Update actions/checkout action to v4 [`#178`](https://github.com/JohT/data-restructor-js/pull/178)
|
|
21
|
+
- Update dependency lmdb to v2.8.4 [`#171`](https://github.com/JohT/data-restructor-js/pull/171)
|
|
22
|
+
- Update dependency parcel to v2.9.3 [`#165`](https://github.com/JohT/data-restructor-js/pull/165)
|
|
23
|
+
- Update dependency lmdb to v2.8.2 [`#164`](https://github.com/JohT/data-restructor-js/pull/164)
|
|
24
|
+
- Update dependency eslint to v8.42.0 [`#157`](https://github.com/JohT/data-restructor-js/pull/157)
|
|
25
|
+
- Update dependency lmdb to v2.8.0 [`#154`](https://github.com/JohT/data-restructor-js/pull/154)
|
|
26
|
+
- Update dependency parcel to v2.9.1 [`#155`](https://github.com/JohT/data-restructor-js/pull/155)
|
|
27
|
+
- Update dependency jasmine to v5 [`#156`](https://github.com/JohT/data-restructor-js/pull/156)
|
|
28
|
+
- Update dependency inquirer to v9.2.0 [`#151`](https://github.com/JohT/data-restructor-js/pull/151)
|
|
29
|
+
- Update dependency eslint to v8.38.0 [`#149`](https://github.com/JohT/data-restructor-js/pull/149)
|
|
30
|
+
- Update dependency eslint to v8.37.0 [`#148`](https://github.com/JohT/data-restructor-js/pull/148)
|
|
31
|
+
- Update dependency inquirer to v9.1.5 [`#146`](https://github.com/JohT/data-restructor-js/pull/146)
|
|
32
|
+
|
|
33
|
+
## [v3.4.1](https://github.com/JohT/data-restructor-js/compare/v3.4.0...v3.4.1) (28 February 2023)
|
|
34
|
+
|
|
35
|
+
### Changes
|
|
36
|
+
|
|
37
|
+
- Pin dependency auto-changelog to 2.4.0 [`#141`](https://github.com/JohT/data-restructor-js/pull/141)
|
|
38
|
+
- Generate CHANGELOG.md using auto-changelog [`#140`](https://github.com/JohT/data-restructor-js/pull/140)
|
|
39
|
+
- Update/node-18 [`#132`](https://github.com/JohT/data-restructor-js/pull/132)
|
|
40
|
+
|
|
41
|
+
### Dependency Updates
|
|
42
|
+
|
|
43
|
+
- Update dependency eslint to v8.35.0 [`#139`](https://github.com/JohT/data-restructor-js/pull/139)
|
|
44
|
+
- Update dependency jsdoc to v4.0.2 [`#137`](https://github.com/JohT/data-restructor-js/pull/137)
|
|
45
|
+
- Update dependency jsdoc to v4.0.1 [`#136`](https://github.com/JohT/data-restructor-js/pull/136)
|
|
46
|
+
- Update dependency parcel to v2.8.3 [`#134`](https://github.com/JohT/data-restructor-js/pull/134)
|
|
47
|
+
- Update dependency eslint to v8.34.0 [`#135`](https://github.com/JohT/data-restructor-js/pull/135)
|
|
48
|
+
- Update dependency lmdb to v2.7.9 [`#131`](https://github.com/JohT/data-restructor-js/pull/131)
|
|
49
|
+
- Update dependency lmdb to v2.7.8 [`#130`](https://github.com/JohT/data-restructor-js/pull/130)
|
|
50
|
+
- Update dependency lmdb to v2.7.7 [`#129`](https://github.com/JohT/data-restructor-js/pull/129)
|
|
51
|
+
- Update dependency eslint to v8.32.0 [`#124`](https://github.com/JohT/data-restructor-js/pull/124)
|
|
52
|
+
- Update dependency lmdb to v2.7.2 [`#119`](https://github.com/JohT/data-restructor-js/pull/119)
|
|
53
|
+
- Update dependency lmdb to v2.7.0 [`#114`](https://github.com/JohT/data-restructor-js/pull/114)
|
|
54
|
+
- Update dependency eslint to v8.27.0 [`#113`](https://github.com/JohT/data-restructor-js/pull/113)
|
|
55
|
+
- Update dependency jsdoc to v4 [`#112`](https://github.com/JohT/data-restructor-js/pull/112)
|
|
56
|
+
|
|
57
|
+
## [v3.4.0](https://github.com/JohT/data-restructor-js/compare/v3.3.4...v3.4.0) (31 October 2022)
|
|
58
|
+
|
|
59
|
+
### Changes
|
|
60
|
+
|
|
61
|
+
- resolve markdown linter warnings [`#110`](https://github.com/JohT/data-restructor-js/pull/110)
|
|
62
|
+
- Fix build error [`#91`](https://github.com/JohT/data-restructor-js/pull/91)
|
|
63
|
+
- Auto commit with protected branch [`#55`](https://github.com/JohT/data-restructor-js/pull/55)
|
|
64
|
+
- issue #44 further simplify auto commit on push [`#54`](https://github.com/JohT/data-restructor-js/pull/54)
|
|
65
|
+
- Simplify auto commit on push [`#51`](https://github.com/JohT/data-restructor-js/pull/51)
|
|
66
|
+
- Also consider auto commit author [`#49`](https://github.com/JohT/data-restructor-js/pull/49)
|
|
67
|
+
- Auto commit build artifacts on push [`#47`](https://github.com/JohT/data-restructor-js/pull/47)
|
|
68
|
+
- Auto commit build artifacts only on push [`#46`](https://github.com/JohT/data-restructor-js/pull/46)
|
|
69
|
+
- Automatically push Continuous Integration build artifacts when Pull Request is merged [`#45`](https://github.com/JohT/data-restructor-js/pull/45)
|
|
70
|
+
- Automate MergerJS [`#43`](https://github.com/JohT/data-restructor-js/pull/43)
|
|
71
|
+
- Pin dependency jasmine to v3.7.0 [`#17`](https://github.com/JohT/data-restructor-js/pull/17)
|
|
72
|
+
- Pin dependencies [`#16`](https://github.com/JohT/data-restructor-js/pull/16)
|
|
73
|
+
- Configure Renovate [`#15`](https://github.com/JohT/data-restructor-js/pull/15)
|
|
74
|
+
|
|
75
|
+
### Dependency Updates
|
|
76
|
+
|
|
77
|
+
- Update Node.js to v18 [`#108`](https://github.com/JohT/data-restructor-js/pull/108)
|
|
78
|
+
- Update dependency eslint to v8.26.0 [`#107`](https://github.com/JohT/data-restructor-js/pull/107)
|
|
79
|
+
- Update dependency eslint to v8.24.0 [`#103`](https://github.com/JohT/data-restructor-js/pull/103)
|
|
80
|
+
- Update dependency eslint to v8.23.1 [`#101`](https://github.com/JohT/data-restructor-js/pull/101)
|
|
81
|
+
- Update dependency inquirer to v9.1.1 [`#99`](https://github.com/JohT/data-restructor-js/pull/99)
|
|
82
|
+
- Update dependency eslint to v8.22.0 [`#97`](https://github.com/JohT/data-restructor-js/pull/97)
|
|
83
|
+
- Update dependency inquirer to v9.1.0 [`#96`](https://github.com/JohT/data-restructor-js/pull/96)
|
|
84
|
+
- Update dependency eslint to v8.21.0 [`#95`](https://github.com/JohT/data-restructor-js/pull/95)
|
|
85
|
+
- Update dependency jsdoc to v3.6.11 [`#93`](https://github.com/JohT/data-restructor-js/pull/93)
|
|
86
|
+
- Update dependency eslint to v8.19.0 [`#88`](https://github.com/JohT/data-restructor-js/pull/88)
|
|
87
|
+
- Update dependency inquirer to v9 [`#85`](https://github.com/JohT/data-restructor-js/pull/85)
|
|
88
|
+
- Update github/codeql-action action to v2 [`#75`](https://github.com/JohT/data-restructor-js/pull/75)
|
|
89
|
+
- Update actions/upload-artifact action to v3 [`#67`](https://github.com/JohT/data-restructor-js/pull/67)
|
|
90
|
+
- Update actions/setup-node action to v3 [`#64`](https://github.com/JohT/data-restructor-js/pull/64)
|
|
91
|
+
- Update actions/checkout action to v3 [`#66`](https://github.com/JohT/data-restructor-js/pull/66)
|
|
92
|
+
- Update dependency node-forge to 1.0.0 [SECURITY] [`#62`](https://github.com/JohT/data-restructor-js/pull/62)
|
|
93
|
+
- Update dependency nanoid to 3.1.31 [SECURITY] [`#61`](https://github.com/JohT/data-restructor-js/pull/61)
|
|
94
|
+
- Update dependency jasmine to v4 [`#41`](https://github.com/JohT/data-restructor-js/pull/41)
|
|
95
|
+
- Update dependency istanbul-badges-readme to v1.8.1 [`#37`](https://github.com/JohT/data-restructor-js/pull/37)
|
|
96
|
+
- Update dependency eslint to v8.4.0 [`#35`](https://github.com/JohT/data-restructor-js/pull/35)
|
|
97
|
+
- Update Node.js to v16 [`#30`](https://github.com/JohT/data-restructor-js/pull/30)
|
|
98
|
+
- Update Node.js to v14 [`#22`](https://github.com/JohT/data-restructor-js/pull/22)
|
|
99
|
+
- Update dependency parcel to v2.0.0-rc.0 [`#19`](https://github.com/JohT/data-restructor-js/pull/19)
|
|
100
|
+
- Update dependency jasmine to v3.9.0 [`#21`](https://github.com/JohT/data-restructor-js/pull/21)
|
|
101
|
+
- Update dependency eslint to v7.32.0 [`#20`](https://github.com/JohT/data-restructor-js/pull/20)
|
|
102
|
+
|
|
103
|
+
<!-- auto-changelog-above -->
|
|
9
104
|
### Automation
|
|
10
105
|
|
|
11
106
|
- [#42](https://github.com/JohT/data-restructor-js/issues/42) The command `npm run merger` is now able to run automatically.
|
|
12
107
|
- [#44](https://github.com/JohT/data-restructor-js/issues/44) Push Continuous Integration build artifacts into the repository.
|
|
13
108
|
|
|
14
|
-
##
|
|
109
|
+
## [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
110
|
|
|
16
111
|
### Fixes
|
|
17
112
|
|
|
18
113
|
- #12 Zero recursion duplication should be possible
|
|
19
114
|
|
|
20
|
-
##
|
|
115
|
+
## [v3.3.3](https://github.com/JohT/data-restructor-js/compare/v3.3.2...v3.3.3) IE support fix (6 June 2021)
|
|
21
116
|
|
|
22
117
|
### Fixes
|
|
23
118
|
|
|
24
119
|
- Use classic property definitions idiom instead of [ES6 PropertyShorthand](http://es6-features.org/#PropertyShorthand) for internet explorer (IE) support.
|
|
25
120
|
|
|
26
|
-
##
|
|
121
|
+
## [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
122
|
|
|
28
123
|
### Features
|
|
29
124
|
|
|
@@ -35,13 +130,18 @@ diverse, inclusive, and healthy community.
|
|
|
35
130
|
- [PARCEL v2](https://v2.parceljs.org) migration
|
|
36
131
|
- Update dependency versions
|
|
37
132
|
|
|
38
|
-
|
|
133
|
+
### Changes
|
|
134
|
+
|
|
135
|
+
- Setup CodeQL Analysis [`#10`](https://github.com/JohT/data-restructor-js/pull/10)
|
|
136
|
+
- Encourage Open Source Contribution [`#9`](https://github.com/JohT/data-restructor-js/pull/9)
|
|
137
|
+
|
|
138
|
+
## [v3.3.1](https://github.com/JohT/data-restructor-js/compare/v3.3.0...v3.3.1) Output folder fixed (9 May 2021)
|
|
39
139
|
|
|
40
140
|
### Fixes
|
|
41
141
|
|
|
42
142
|
- Minified output destination fixed. Minified files are now correctly written into the "dist" folder (instead of "dev").
|
|
43
143
|
|
|
44
|
-
##
|
|
144
|
+
## [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
145
|
|
|
46
146
|
### Features
|
|
47
147
|
|
|
@@ -50,32 +150,37 @@ diverse, inclusive, and healthy community.
|
|
|
50
150
|
- [README.md](README.md#credits) now contains a lists of credits
|
|
51
151
|
- [COMMANDS.MD](COMMANDS.MD#most-important-commands-for-development) now contains a separate list for commands, that are used on a regular basis
|
|
52
152
|
|
|
53
|
-
|
|
153
|
+
### Changes
|
|
154
|
+
|
|
155
|
+
- Support direct use of modules in "dist" and "devdist" folder [`#8`](https://github.com/JohT/data-restructor-js/pull/8)
|
|
156
|
+
|
|
157
|
+
## [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
158
|
|
|
55
159
|
### Features
|
|
56
160
|
|
|
57
|
-
-
|
|
161
|
+
- Configurable recursion depth above which duplications will be removed [`#6`](https://github.com/JohT/data-restructor-js/pull/6)
|
|
58
162
|
|
|
59
|
-
##
|
|
163
|
+
## [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
164
|
|
|
61
165
|
### Features
|
|
62
166
|
|
|
63
|
-
- Configurable
|
|
167
|
+
- Configurable sub group level depth [`#4`](https://github.com/JohT/data-restructor-js/pull/4)
|
|
64
168
|
- Improved JSDoc structure and contents
|
|
65
169
|
|
|
66
170
|
### Fixes
|
|
67
171
|
|
|
68
|
-
- [
|
|
172
|
+
- Group hierarchy limited to 1 since v3.0.0 [`#3`](https://github.com/JohT/data-restructor-js/issues/3)
|
|
69
173
|
|
|
70
174
|
### Deprecated
|
|
71
175
|
|
|
72
176
|
- `datarestructor.Restructor.processJsonUsingDescriptions(jsonData, descriptions)` is deprecated.
|
|
73
177
|
Please use `new datarestructor.Transform(descriptions).processJson(jsonData)` instead.
|
|
74
178
|
|
|
75
|
-
##
|
|
179
|
+
## [v3.0.0](https://github.com/JohT/data-restructor-js/compare/v2.3.0...v3.0.0) Introducing DescribedDataField (13 March 2021)
|
|
76
180
|
|
|
77
181
|
### Features
|
|
78
182
|
|
|
183
|
+
- Introducing DescribedDataField [`#2`](https://github.com/JohT/data-restructor-js/pull/2)
|
|
79
184
|
- Pure, non cyclic data result that can be converted to json without using additional functions
|
|
80
185
|
|
|
81
186
|
### Breaking Changes
|
|
@@ -85,11 +190,11 @@ Please use `new datarestructor.Transform(descriptions).processJson(jsonData)` in
|
|
|
85
190
|
- DescribedEntry function "resolveTemplate" is removed. "templateResolver.js" can be used instead.
|
|
86
191
|
- DescribedEntry function "publicFieldsJson" is removed. `JSON.stringify(describedEntry.describedField)` can be used instead.
|
|
87
192
|
|
|
88
|
-
##
|
|
193
|
+
## [v2.3.0](https://github.com/JohT/data-restructor-js/compare/v2.2.0...v2.3.0) Continuous Integration (6 February 2021)
|
|
89
194
|
|
|
90
195
|
### Features
|
|
91
196
|
|
|
92
|
-
- Continuous Integration using GitHub Actions
|
|
197
|
+
- Continuous Integration using GitHub Actions introduced [`#1`](https://github.com/JohT/data-restructor-js/pull/1)
|
|
93
198
|
- Build using nodes package manager (npm)
|
|
94
199
|
- Bundle (minification,...) using Parcel Bundler
|
|
95
200
|
- Automated already existing unit tests using Jasmine
|
|
@@ -98,7 +203,7 @@ Please use `new datarestructor.Transform(descriptions).processJson(jsonData)` in
|
|
|
98
203
|
- Static code analysis using ESLint
|
|
99
204
|
- Updated documentation
|
|
100
205
|
|
|
101
|
-
##
|
|
206
|
+
## [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
207
|
|
|
103
208
|
### Features
|
|
104
209
|
|
|
@@ -141,7 +246,7 @@ but also the described fields directly. Based on the JSON below, the resolver wo
|
|
|
141
246
|
}
|
|
142
247
|
```
|
|
143
248
|
|
|
144
|
-
##
|
|
249
|
+
## [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
250
|
|
|
146
251
|
### Features
|
|
147
252
|
|
|
@@ -153,7 +258,7 @@ but also the described fields directly. Based on the JSON below, the resolver wo
|
|
|
153
258
|
|
|
154
259
|
- Some minor refactoring
|
|
155
260
|
|
|
156
|
-
##
|
|
261
|
+
## [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
262
|
|
|
158
263
|
### Features
|
|
159
264
|
|
|
@@ -193,7 +298,7 @@ Prior to this release, the following error occurred when calling `JSON.stringify
|
|
|
193
298
|
}
|
|
194
299
|
```
|
|
195
300
|
|
|
196
|
-
##
|
|
301
|
+
## [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
302
|
|
|
198
303
|
### Features
|
|
199
304
|
|
|
@@ -218,18 +323,18 @@ var resolved = describedEntry.resolveTemplate("{{displayName}}: {{value}}");
|
|
|
218
323
|
// resolved is: "Name: Smith"
|
|
219
324
|
```
|
|
220
325
|
|
|
221
|
-
##
|
|
326
|
+
## [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
327
|
|
|
223
328
|
### Features
|
|
224
329
|
|
|
225
|
-
- Group destination name and joining
|
|
330
|
+
- [Group destination name and joining](https://github.com/JohT/data-restructor-js/commit/534c368bcb835c110e1255508ed44c790972955c)
|
|
226
331
|
- Groups can now be renamed, when they get moved to another destination.
|
|
227
332
|
- If more than one source group (array) is moved into a single destination, they get joined.
|
|
228
333
|
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
|
|
334
|
+
- [Debug mode introduced](https://github.com/JohT/data-restructor-js/commit/72232e7f23ced9655c1d2693a3a5b3163c312221)
|
|
335
|
+
- [Minor refactoring](https://github.com/JohT/data-restructor-js/commit/14094fe247c1c1551ff518a1378a26b0cfc074c9)
|
|
231
336
|
|
|
232
|
-
##
|
|
337
|
+
## [v1.0.0](https://github.com/JohT/data-restructor-js/releases/tag/v1.0.0) Initial Release (2020-10-25)
|
|
233
338
|
|
|
234
339
|
### Features
|
|
235
340
|
|
|
@@ -237,4 +342,4 @@ var resolved = describedEntry.resolveTemplate("{{displayName}}: {{value}}");
|
|
|
237
342
|
- Multiple transformation steps including flattening, removing duplicates, grouping, ...
|
|
238
343
|
- Takes descriptions that reflect the incoming structure and define the standardized output
|
|
239
344
|
- Reusable and flexible
|
|
240
|
-
- Supports most browser including
|
|
345
|
+
- 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
|
}
|