raain-model 2.6.11 → 3.0.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/CHANGELOG.md +109 -7
- package/README.md +16 -1
- package/RELEASE_PROCESS.md +90 -12
- package/cartesian/CartesianMeasureValue.d.ts +8 -2
- package/cartesian/CartesianMeasureValue.js.map +1 -1
- package/cartesian/RadarCartesianMeasureValue.d.ts +12 -2
- package/cartesian/RadarCartesianMeasureValue.js +5 -3
- package/cartesian/RadarCartesianMeasureValue.js.map +1 -1
- package/cartesian/RainCartesianMeasureValue.d.ts +10 -2
- package/cartesian/RainCartesianMeasureValue.js +4 -2
- package/cartesian/RainCartesianMeasureValue.js.map +1 -1
- package/gauge/GaugeMeasure.d.ts +13 -2
- package/gauge/GaugeMeasure.js +20 -1
- package/gauge/GaugeMeasure.js.map +1 -1
- package/gauge/GaugeNode.d.ts +11 -1
- package/gauge/GaugeNode.js +9 -7
- package/gauge/GaugeNode.js.map +1 -1
- package/gauge/GaugeNodeMap.d.ts +12 -1
- package/gauge/GaugeNodeMap.js +4 -2
- package/gauge/GaugeNodeMap.js.map +1 -1
- package/organization/EventNode.d.ts +9 -1
- package/organization/EventNode.js.map +1 -1
- package/organization/Measure.d.ts +9 -1
- package/organization/Measure.js +13 -7
- package/organization/Measure.js.map +1 -1
- package/organization/PeopleNode.d.ts +6 -1
- package/organization/RaainNode.d.ts +5 -1
- package/organization/RaainNode.js.map +1 -1
- package/organization/TeamNode.d.ts +12 -24
- package/organization/TeamNode.js +2 -18
- package/organization/TeamNode.js.map +1 -1
- package/package.json +4 -2
- package/polar/AbstractPolarMeasureValue.d.ts +6 -4
- package/polar/AbstractPolarMeasureValue.js +7 -9
- package/polar/AbstractPolarMeasureValue.js.map +1 -1
- package/polar/MeasureValuePolarContainer.d.ts +6 -1
- package/polar/MeasureValuePolarContainer.js.map +1 -1
- package/polar/RadarPolarMeasureValue.d.ts +10 -4
- package/polar/RadarPolarMeasureValue.js +13 -8
- package/polar/RadarPolarMeasureValue.js.map +1 -1
- package/polar/RainPolarMeasureValue.d.ts +8 -4
- package/polar/RainPolarMeasureValue.js +11 -7
- package/polar/RainPolarMeasureValue.js.map +1 -1
- package/radar/RadarMeasure.d.ts +22 -2
- package/radar/RadarMeasure.js +24 -2
- package/radar/RadarMeasure.js.map +1 -1
- package/radar/RadarNode.d.ts +12 -1
- package/radar/RadarNode.js +10 -8
- package/radar/RadarNode.js.map +1 -1
- package/radar/RadarNodeMap.d.ts +26 -1
- package/radar/RadarNodeMap.js +9 -3
- package/radar/RadarNodeMap.js.map +1 -1
- package/rain/RainComputation.d.ts +23 -6
- package/rain/RainComputation.js +24 -21
- package/rain/RainComputation.js.map +1 -1
- package/rain/RainComputationAbstract.d.ts +22 -6
- package/rain/RainComputationAbstract.js +23 -12
- package/rain/RainComputationAbstract.js.map +1 -1
- package/rain/RainComputationMap.d.ts +19 -3
- package/rain/RainComputationMap.js +4 -5
- package/rain/RainComputationMap.js.map +1 -1
- package/rain/RainComputationQuality.d.ts +19 -1
- package/rain/RainComputationQuality.js +11 -10
- package/rain/RainComputationQuality.js.map +1 -1
- package/rain/RainNode.d.ts +23 -9
- package/rain/RainNode.js +37 -29
- package/rain/RainNode.js.map +1 -1
- package/rain/index.d.ts +1 -0
- package/rain/index.js +1 -0
- package/rain/index.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,160 +7,262 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [
|
|
10
|
+
## [3.0.2] - 2025-04-17
|
|
11
|
+
|
|
11
12
|
### Added
|
|
13
|
+
|
|
14
|
+
- Enhanced link handling in GaugeMeasure and RadarMeasure
|
|
15
|
+
- Added Release Process documentation in README.md
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Improved node creation in GaugeMeasure and RadarMeasure with proper link handling
|
|
20
|
+
- Updated documentation in .memory-bank folder
|
|
21
|
+
- Clarified release process documentation
|
|
22
|
+
|
|
23
|
+
## [3.0.1] - 2025-04-17
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- Major version upgrade to 3.0.0
|
|
28
|
+
- Enhanced TypeScript 5.0.4 support
|
|
29
|
+
- Improved documentation and API references
|
|
30
|
+
- Additional test coverage
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
- Refactored core components for better performance
|
|
35
|
+
- Updated dependencies to latest versions
|
|
36
|
+
- Improved error handling and type safety
|
|
37
|
+
|
|
38
|
+
### Technical Details
|
|
39
|
+
|
|
40
|
+
- Optimized data structures for radar and rain processing
|
|
41
|
+
- Enhanced coordinate transformation algorithms
|
|
42
|
+
- Improved quality metrics calculation
|
|
43
|
+
|
|
44
|
+
## [2.6.11] - 2025-03-22
|
|
45
|
+
|
|
46
|
+
### Added
|
|
47
|
+
|
|
12
48
|
- Planning new feature implementations
|
|
13
49
|
- Considering additional testing frameworks
|
|
14
50
|
|
|
15
51
|
### Changed
|
|
52
|
+
|
|
16
53
|
- Ongoing documentation improvements
|
|
17
54
|
- Code structure refinements
|
|
18
55
|
|
|
19
56
|
### Dependencies
|
|
57
|
+
|
|
20
58
|
- Planning to update TypeScript dependencies
|
|
21
59
|
- Considering new quality measurement tools integration
|
|
22
60
|
|
|
23
61
|
### Technical Details
|
|
62
|
+
|
|
24
63
|
- Investigating performance optimizations
|
|
25
64
|
- Exploring new quality metric algorithms
|
|
26
65
|
|
|
27
66
|
## [2.6.9] - 2025-03-21
|
|
67
|
+
|
|
28
68
|
### Added
|
|
69
|
+
|
|
29
70
|
- MIT license file
|
|
30
71
|
- TypeDoc configuration for API documentation
|
|
31
72
|
- Enhanced documentation for core components
|
|
32
73
|
|
|
33
74
|
### Changed
|
|
75
|
+
|
|
34
76
|
- Updated CI workflow configuration
|
|
35
77
|
- Improved core components:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
78
|
+
- Enhanced RainNode computation capabilities
|
|
79
|
+
- Updated GaugeNode station management
|
|
80
|
+
- Refined organization structure (RaainNode, TeamNode)
|
|
39
81
|
|
|
40
82
|
### Dependencies
|
|
83
|
+
|
|
41
84
|
- Updated dependencies to latest versions
|
|
42
85
|
- Upgraded TypeScript to ^5.0.4
|
|
43
86
|
- Updated testing frameworks
|
|
44
87
|
|
|
45
88
|
### Technical Details
|
|
89
|
+
|
|
46
90
|
- Improved polar measurement value filtering
|
|
47
91
|
- Enhanced speed matrix container comparison calculations
|
|
48
92
|
- Refined quality control mechanisms
|
|
49
93
|
|
|
50
94
|
## [2.6.8] - 2025-03-16
|
|
95
|
+
|
|
51
96
|
### Fixed
|
|
97
|
+
|
|
52
98
|
- PolarMeasureValue getFiltered functionality
|
|
53
99
|
|
|
54
100
|
### Technical Details
|
|
101
|
+
|
|
55
102
|
- Optimized filtering algorithms
|
|
56
103
|
- Improved error handling in measurement processing
|
|
57
104
|
|
|
58
105
|
## [2.6.7] - 2025-02-24
|
|
106
|
+
|
|
59
107
|
### Fixed
|
|
108
|
+
|
|
60
109
|
- SpeedMatrixContainer BuildCompares calculations
|
|
61
110
|
- Quality point calculations and metrics
|
|
62
111
|
- CartesianRainHistory tracking improvements
|
|
63
112
|
- QualityTools refinements
|
|
64
113
|
|
|
65
114
|
### Dependencies
|
|
115
|
+
|
|
66
116
|
- Updated dependencies to patch security vulnerabilities
|
|
67
117
|
|
|
68
118
|
### Technical Details
|
|
119
|
+
|
|
69
120
|
- Improved matrix comparison algorithms
|
|
70
121
|
- Enhanced quality metric calculations
|
|
71
122
|
- Optimized history tracking mechanisms
|
|
72
123
|
|
|
73
124
|
## [2.6.0] - 2024
|
|
125
|
+
|
|
74
126
|
### Added
|
|
127
|
+
|
|
75
128
|
- Unified Cartesian map tools
|
|
76
129
|
- Improved map manipulation utilities
|
|
77
130
|
|
|
78
131
|
## [2.5.0] - 2024
|
|
132
|
+
|
|
79
133
|
### Added
|
|
134
|
+
|
|
80
135
|
- Polar and Cartesian limits (count + offsets)
|
|
81
136
|
- PolarMap for index manipulation
|
|
82
137
|
|
|
83
138
|
## [2.4.0] - 2024
|
|
139
|
+
|
|
84
140
|
### Changed
|
|
141
|
+
|
|
85
142
|
- Moved role to roles in PeopleNode
|
|
86
143
|
- Improved role management system
|
|
87
144
|
|
|
88
145
|
## [2.3.0] - 2024
|
|
146
|
+
|
|
89
147
|
### Changed
|
|
148
|
+
|
|
90
149
|
- Refactored Angle/Axis system
|
|
91
150
|
- Improved angular calculations
|
|
92
151
|
|
|
93
152
|
## [2.2.0] - 2024
|
|
153
|
+
|
|
94
154
|
### Changed
|
|
155
|
+
|
|
95
156
|
- Refactored BuildCompares functionality
|
|
96
157
|
- Enhanced comparison algorithms
|
|
97
158
|
|
|
98
159
|
## [2.1.0] - 2023
|
|
160
|
+
|
|
99
161
|
### Added
|
|
162
|
+
|
|
100
163
|
- Extended RainComputationQuality with rainComputation's link
|
|
101
164
|
- Added getQualityPointsByHistoricalPosition method
|
|
102
165
|
|
|
103
166
|
## [2.0.0] - 2023
|
|
167
|
+
|
|
104
168
|
### Changed
|
|
169
|
+
|
|
105
170
|
- More flexible configuration system for rain, radar, and gauge
|
|
106
171
|
- Restructured Rain zone to use LatLng rects
|
|
107
172
|
- Removed period usage in favor of date
|
|
108
173
|
|
|
109
174
|
## [1.11.0] - 2023
|
|
175
|
+
|
|
110
176
|
### Changed
|
|
177
|
+
|
|
111
178
|
- Modified SpeedMatrixContainer's QualityPoints relation (1:N)
|
|
112
179
|
- Added SpeedMatrix name property
|
|
113
180
|
|
|
114
181
|
## [1.10.0] - 2023
|
|
182
|
+
|
|
115
183
|
### Added
|
|
184
|
+
|
|
116
185
|
- Object constructor based on JSON only
|
|
117
186
|
- Added specifications
|
|
118
187
|
|
|
119
188
|
## [1.9.0] - 2023
|
|
189
|
+
|
|
120
190
|
### Added
|
|
191
|
+
|
|
121
192
|
- Cartesian improvements
|
|
122
193
|
- Enhanced coordinate system
|
|
123
194
|
|
|
124
195
|
## [0.4.0] - 2022
|
|
196
|
+
|
|
125
197
|
### Changed
|
|
198
|
+
|
|
126
199
|
- Implemented Cartesian values
|
|
127
200
|
- Reorganized folders
|
|
128
201
|
- Renamed Polar objects (XX-MeasureValue to XX-PolarMeasureValue)
|
|
129
202
|
|
|
130
203
|
## [0.3.0] - 2022
|
|
204
|
+
|
|
131
205
|
### Added
|
|
206
|
+
|
|
132
207
|
- Added IVersion interface
|
|
133
208
|
- Implemented CI/CD pipeline
|
|
134
209
|
|
|
135
210
|
### Changed
|
|
211
|
+
|
|
136
212
|
- Reformatted Links structure
|
|
137
213
|
|
|
138
214
|
## [0.2.0] - 2022
|
|
215
|
+
|
|
139
216
|
### Added
|
|
217
|
+
|
|
140
218
|
- Customer teams functionality
|
|
141
219
|
- Radar implementation
|
|
142
220
|
|
|
143
221
|
## [0.0.1] - 2022
|
|
222
|
+
|
|
144
223
|
### Added
|
|
224
|
+
|
|
145
225
|
- Initial release
|
|
146
226
|
- First extracts from RAAIN services
|
|
147
227
|
|
|
148
|
-
[Unreleased]: https://github.com/raainio/raain-model/compare/
|
|
149
|
-
|
|
228
|
+
[Unreleased]: https://github.com/raainio/raain-model/compare/v3.0.2...HEAD
|
|
229
|
+
|
|
230
|
+
[3.0.2]: https://github.com/raainio/raain-model/compare/v3.0.1...v3.0.2
|
|
231
|
+
|
|
232
|
+
[3.0.1]: https://github.com/raainio/raain-model/compare/v2.6.11...v3.0.1
|
|
233
|
+
|
|
234
|
+
[2.6.11]: https://github.com/raainio/raain-model/compare/v2.6.9...v2.6.11
|
|
235
|
+
|
|
150
236
|
[2.6.9]: https://github.com/raainio/raain-model/compare/v2.6.8...v2.6.9
|
|
237
|
+
|
|
151
238
|
[2.6.8]: https://github.com/raainio/raain-model/compare/v2.6.7...v2.6.8
|
|
239
|
+
|
|
152
240
|
[2.6.7]: https://github.com/raainio/raain-model/compare/v2.6.6...v2.6.7
|
|
241
|
+
|
|
153
242
|
[2.6.0]: https://github.com/raainio/raain-model/compare/v2.5.0...v2.6.0
|
|
243
|
+
|
|
154
244
|
[2.5.0]: https://github.com/raainio/raain-model/compare/v2.4.0...v2.5.0
|
|
245
|
+
|
|
155
246
|
[2.4.0]: https://github.com/raainio/raain-model/compare/v2.3.0...v2.4.0
|
|
247
|
+
|
|
156
248
|
[2.3.0]: https://github.com/raainio/raain-model/compare/v2.2.0...v2.3.0
|
|
249
|
+
|
|
157
250
|
[2.2.0]: https://github.com/raainio/raain-model/compare/v2.1.0...v2.2.0
|
|
251
|
+
|
|
158
252
|
[2.1.0]: https://github.com/raainio/raain-model/compare/v2.0.0...v2.1.0
|
|
253
|
+
|
|
159
254
|
[2.0.0]: https://github.com/raainio/raain-model/compare/v1.11.0...v2.0.0
|
|
255
|
+
|
|
160
256
|
[1.11.0]: https://github.com/raainio/raain-model/compare/v1.10.0...v1.11.0
|
|
257
|
+
|
|
161
258
|
[1.10.0]: https://github.com/raainio/raain-model/compare/v1.9.0...v1.10.0
|
|
259
|
+
|
|
162
260
|
[1.9.0]: https://github.com/raainio/raain-model/compare/v0.4.0...v1.9.0
|
|
261
|
+
|
|
163
262
|
[0.4.0]: https://github.com/raainio/raain-model/compare/v0.3.0...v0.4.0
|
|
263
|
+
|
|
164
264
|
[0.3.0]: https://github.com/raainio/raain-model/compare/v0.2.0...v0.3.0
|
|
265
|
+
|
|
165
266
|
[0.2.0]: https://github.com/raainio/raain-model/compare/v0.0.1...v0.2.0
|
|
166
|
-
|
|
267
|
+
|
|
268
|
+
[0.0.1]: https://github.com/raainio/raain-model/releases/tag/v0.0.1
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/raain-model)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
|
-
[](https://www.typescriptlang.org/)
|
|
6
6
|
[](https://github.com/raainio/raain-model/actions)
|
|
7
7
|
|
|
8
8
|
> A TypeScript library for radar-based rain measurement and analysis, used in [radartorain.com](https://radartorain.com)
|
|
@@ -61,6 +61,17 @@ const computation = new RainComputationMap({
|
|
|
61
61
|
Visit [documentation](https://raainio.github.io/raain-model)
|
|
62
62
|
and [swagger](https://api.sandbox.radartorain.com/v2/docs).
|
|
63
63
|
|
|
64
|
+
### Memory Bank
|
|
65
|
+
|
|
66
|
+
This project uses a Memory Bank for comprehensive documentation and context retention. The Memory Bank is located in the `.memory-bank` directory and contains the following files:
|
|
67
|
+
|
|
68
|
+
- `projectbrief.md`: Overview of the project, core requirements, and goals
|
|
69
|
+
- `productContext.md`: Why the project exists, problems it solves, and how it works
|
|
70
|
+
- `systemPatterns.md`: System architecture, key technical decisions, and design patterns
|
|
71
|
+
- `techContext.md`: Technologies used, development setup, and technical constraints
|
|
72
|
+
- `activeContext.md`: Current work focus, recent changes, and next steps
|
|
73
|
+
- `progress.md`: What works, what's left to build, and known issues
|
|
74
|
+
|
|
64
75
|
### Key Components
|
|
65
76
|
|
|
66
77
|
- `RainNode`: Core class for rain measurement nodes
|
|
@@ -86,3 +97,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
86
97
|
## 📅 Changelog
|
|
87
98
|
|
|
88
99
|
See [Changelog](./CHANGELOG.md) for version history and changes.
|
|
100
|
+
|
|
101
|
+
## 🚢 Release Process
|
|
102
|
+
|
|
103
|
+
This project follows a structured release process. For detailed information about how releases are managed, please see the [Release Process Documentation](./RELEASE_PROCESS.md).
|
package/RELEASE_PROCESS.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Release Process Documentation
|
|
2
2
|
|
|
3
|
+
⚠️ IMPORTANT: Released are done by GitHub CI
|
|
4
|
+
- No npm publish
|
|
5
|
+
- No manual releases
|
|
6
|
+
|
|
3
7
|
## Patch Version Release Steps
|
|
4
8
|
|
|
5
9
|
### Prerequisites
|
|
@@ -27,7 +31,21 @@
|
|
|
27
31
|
- specs/*.md files
|
|
28
32
|
- CHANGELOG.md
|
|
29
33
|
|
|
30
|
-
3. **Version
|
|
34
|
+
3. **Update Version Number**
|
|
35
|
+
```bash
|
|
36
|
+
npm run build-version
|
|
37
|
+
```
|
|
38
|
+
This command automatically increments the patch version in package.json.
|
|
39
|
+
|
|
40
|
+
4. **Update CHANGELOG.md**
|
|
41
|
+
- Move items from [Unreleased] section to a new version section
|
|
42
|
+
- Run the update-changelog script to automatically add the current system date in ISO format (YYYY-MM-DD):
|
|
43
|
+
```bash
|
|
44
|
+
npm run update-changelog
|
|
45
|
+
```
|
|
46
|
+
- Update the version comparison links at the bottom of the file
|
|
47
|
+
|
|
48
|
+
5. **Version Control**
|
|
31
49
|
```bash
|
|
32
50
|
git add .
|
|
33
51
|
git commit -m "release: patch version X.Y.Z with [explanation of changes]"
|
|
@@ -35,22 +53,65 @@
|
|
|
35
53
|
git push
|
|
36
54
|
git push --tags
|
|
37
55
|
```
|
|
38
|
-
Replace X.Y.Z with the actual version number and provide a clear explanation of changes.
|
|
56
|
+
Replace X.Y.Z with the actual version number from package.json and provide a clear explanation of changes.
|
|
57
|
+
|
|
58
|
+
## Minor and Major Version Release Steps
|
|
59
|
+
|
|
60
|
+
For minor (feature) and major (breaking change) version releases, follow the same steps as for patch releases, with these differences:
|
|
61
|
+
|
|
62
|
+
### Minor Version (Features)
|
|
63
|
+
|
|
64
|
+
1. Use the following command instead of `npm run build-version`:
|
|
65
|
+
```bash
|
|
66
|
+
npm version minor --no-git-tag-version
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
2. In the commit message, use:
|
|
70
|
+
```bash
|
|
71
|
+
git commit -m "release: minor version X.Y.0 with [explanation of new features]"
|
|
72
|
+
```
|
|
39
73
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
74
|
+
3. Ensure all new features are properly documented in the CHANGELOG.md
|
|
75
|
+
|
|
76
|
+
### Major Version (Breaking Changes)
|
|
77
|
+
|
|
78
|
+
1. Use the following command instead of `npm run build-version`:
|
|
79
|
+
```bash
|
|
80
|
+
npm version major --no-git-tag-version
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
2. In the commit message, use:
|
|
84
|
+
```bash
|
|
85
|
+
git commit -m "release: major version X.0.0 with [explanation of breaking changes]"
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
3. Ensure all breaking changes are clearly documented in the CHANGELOG.md
|
|
89
|
+
4. Update the README.md to reflect any changes in usage patterns
|
|
90
|
+
5. Consider creating a migration guide for users upgrading from the previous major version
|
|
91
|
+
|
|
92
|
+
## For all Version Release Steps (Patch, Minor, or Major)
|
|
47
93
|
|
|
48
94
|
### Important Notes
|
|
49
95
|
|
|
50
96
|
- Always run and verify tests before pushing
|
|
51
97
|
- Document all significant changes in the commit message
|
|
52
98
|
- Monitor the merge process for any conflicts
|
|
53
|
-
|
|
99
|
+
|
|
100
|
+
### Post-Release Verification
|
|
101
|
+
|
|
102
|
+
- Verify the release is properly tagged
|
|
103
|
+
- Test the build process:
|
|
104
|
+
```bash
|
|
105
|
+
npm run build
|
|
106
|
+
```
|
|
107
|
+
- Verify the built package can be installed:
|
|
108
|
+
```bash
|
|
109
|
+
cd dist
|
|
110
|
+
npm pack
|
|
111
|
+
# This creates a .tgz file that can be installed locally
|
|
112
|
+
# Install in a test project to verify it works:
|
|
113
|
+
# npm install /path/to/raain-model-X.Y.Z.tgz
|
|
114
|
+
```
|
|
54
115
|
|
|
55
116
|
### Version Management Best Practices
|
|
56
117
|
|
|
@@ -76,8 +137,9 @@
|
|
|
76
137
|
|
|
77
138
|
### Common Pitfalls to Avoid
|
|
78
139
|
|
|
140
|
+
- Don't push any changes before receiving explicit "release" command
|
|
79
141
|
- Don't create tags with placeholder version numbers (X.Y.Z)
|
|
80
|
-
- Don't forget to push both commits and tags
|
|
142
|
+
- Don't forget to push both commits and tags (only after "release" command)
|
|
81
143
|
- Don't manually publish to npm
|
|
82
144
|
- Don't bypass CI process
|
|
83
145
|
|
|
@@ -107,10 +169,26 @@ If merge conflicts occur:
|
|
|
107
169
|
- Return to the root directory for git operations
|
|
108
170
|
- Use absolute paths when necessary to avoid confusion
|
|
109
171
|
|
|
172
|
+
### CI/CD Integration
|
|
173
|
+
|
|
174
|
+
This project uses GitHub Actions for continuous integration and deployment. The CI workflow is defined in `.github/workflows/ci.yml` and is triggered on pushes to the master branch. The workflow includes:
|
|
175
|
+
|
|
176
|
+
- Running tests
|
|
177
|
+
- Building the project
|
|
178
|
+
- Generating documentation and deploying to GitHub Pages
|
|
179
|
+
- Publishing the package to npm
|
|
180
|
+
|
|
181
|
+
To ensure successful CI/CD:
|
|
182
|
+
- Always verify that tests pass locally before pushing to master
|
|
183
|
+
- Check the GitHub Actions tab after pushing to monitor the workflow
|
|
184
|
+
- Address any CI failures immediately
|
|
185
|
+
- Ensure you have the necessary secrets configured (NPM_TOKEN) for npm publishing
|
|
186
|
+
|
|
110
187
|
### Future Improvements
|
|
111
188
|
|
|
112
189
|
- Consider automating version consistency checks
|
|
113
190
|
- Add pre-commit hooks for version validation
|
|
114
191
|
- Implement automated changelog updates
|
|
115
192
|
- Add automated testing of the release process
|
|
116
|
-
- Consider implementing a release automation script
|
|
193
|
+
- Consider implementing a release automation script
|
|
194
|
+
- Enhance the CI/CD pipeline with additional checks and deployments
|
|
@@ -15,8 +15,14 @@ export declare class CartesianMeasureValue implements ICartesianMeasureValue {
|
|
|
15
15
|
setCartesianValuesAsString(s: string): void;
|
|
16
16
|
toJSON(options?: {
|
|
17
17
|
stringify: boolean;
|
|
18
|
-
}):
|
|
19
|
-
|
|
18
|
+
}): {
|
|
19
|
+
cartesianValues: string | CartesianValue[];
|
|
20
|
+
limitPoints: [LatLng, LatLng];
|
|
21
|
+
};
|
|
22
|
+
toJSONWithCartesianValuesStringified(): {
|
|
23
|
+
cartesianValues: string | CartesianValue[];
|
|
24
|
+
limitPoints: [LatLng, LatLng];
|
|
25
|
+
};
|
|
20
26
|
getCartesianValue(json: {
|
|
21
27
|
lat: number;
|
|
22
28
|
lng: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesian/CartesianMeasureValue.ts"],"names":[],"mappings":";;;AACA,qDAAgD;AAChD,qCAAgC;AAEhC,MAAa,qBAAqB;IAK9B,YAAY,IAGC;;QAGT,IAAI,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe,CAAA,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;QACnE,CAAC;QAED,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACnD,IAAI,CAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,MAAM,MAAK,CAAC,EAAE,CAAC;YACjC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;QAClE,CAAC;IACL,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,GAAiC;QACzC,MAAM,OAAO,GAAG,IAAI,qBAAqB,CAAC;YACtC,eAAe,EAAE,EAAE;SACtB,CAAC,CAAC;QAEH,IAAI,OAAO,GAAG,CAAC,eAAe,KAAK,WAAW,EAAE,CAAC;YAC7C,OAAO,CAAC,uBAAuB,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QACzD,CAAC;QAED,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACjE,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;QACnE,CAAC;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,6BAA6B;QACzB,OAA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E,KAAK,EAAC,CAAC,EACpD,IAAI,eAAM,CAAC,EAAC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAC,CAAC,CAAC,CAAC;QAC9C,CAAC;IACL,CAAC;CACJ;AAhKD,sDAgKC"}
|
|
@@ -12,6 +12,16 @@ export declare class RadarCartesianMeasureValue extends CartesianMeasureValue {
|
|
|
12
12
|
});
|
|
13
13
|
toJSON(options?: {
|
|
14
14
|
stringify: boolean;
|
|
15
|
-
}):
|
|
16
|
-
|
|
15
|
+
}): {
|
|
16
|
+
angle: number;
|
|
17
|
+
axis: number;
|
|
18
|
+
cartesianValues: string | CartesianValue[];
|
|
19
|
+
limitPoints: [LatLng, LatLng];
|
|
20
|
+
};
|
|
21
|
+
toJSONWithCartesianValuesStringified(): {
|
|
22
|
+
angle: number;
|
|
23
|
+
axis: number;
|
|
24
|
+
cartesianValues: string | CartesianValue[];
|
|
25
|
+
limitPoints: [LatLng, LatLng];
|
|
26
|
+
};
|
|
17
27
|
}
|
|
@@ -10,9 +10,11 @@ class RadarCartesianMeasureValue extends CartesianMeasureValue_1.CartesianMeasur
|
|
|
10
10
|
}
|
|
11
11
|
toJSON(options = { stringify: false }) {
|
|
12
12
|
const json = super.toJSON(options);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
return {
|
|
14
|
+
...json,
|
|
15
|
+
angle: this.angle,
|
|
16
|
+
axis: this.axis
|
|
17
|
+
};
|
|
16
18
|
}
|
|
17
19
|
toJSONWithCartesianValuesStringified() {
|
|
18
20
|
return this.toJSON({ stringify: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadarCartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesian/RadarCartesianMeasureValue.ts"],"names":[],"mappings":";;;AACA,mEAA8D;AAG9D,MAAa,0BAA2B,SAAQ,6CAAqB;IAKjE,YAAY,IAKX;QAEG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,OAAO,GAAG,EAAC,SAAS,EAAE,KAAK,EAAC;QAC/B,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"RadarCartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesian/RadarCartesianMeasureValue.ts"],"names":[],"mappings":";;;AACA,mEAA8D;AAG9D,MAAa,0BAA2B,SAAQ,6CAAqB;IAKjE,YAAY,IAKX;QAEG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,OAAO,GAAG,EAAC,SAAS,EAAE,KAAK,EAAC;QAC/B,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACnC,OAAO;YACH,GAAG,IAAI;YACP,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;SAClB,CAAC;IACN,CAAC;IAED,oCAAoC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IAC1C,CAAC;CACJ;AA7BD,gEA6BC"}
|
|
@@ -12,6 +12,14 @@ export declare class RainCartesianMeasureValue extends CartesianMeasureValue imp
|
|
|
12
12
|
getVersion(): string;
|
|
13
13
|
toJSON(options?: {
|
|
14
14
|
stringify: boolean;
|
|
15
|
-
}):
|
|
16
|
-
|
|
15
|
+
}): {
|
|
16
|
+
version: string;
|
|
17
|
+
cartesianValues: string | CartesianValue[];
|
|
18
|
+
limitPoints: [LatLng, LatLng];
|
|
19
|
+
};
|
|
20
|
+
toJSONWithCartesianValuesStringified(): {
|
|
21
|
+
version: string;
|
|
22
|
+
cartesianValues: string | CartesianValue[];
|
|
23
|
+
limitPoints: [LatLng, LatLng];
|
|
24
|
+
};
|
|
17
25
|
}
|
|
@@ -12,8 +12,10 @@ class RainCartesianMeasureValue extends CartesianMeasureValue_1.CartesianMeasure
|
|
|
12
12
|
}
|
|
13
13
|
toJSON(options = { stringify: false }) {
|
|
14
14
|
const json = super.toJSON(options);
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
return {
|
|
16
|
+
...json,
|
|
17
|
+
version: this.getVersion()
|
|
18
|
+
};
|
|
17
19
|
}
|
|
18
20
|
toJSONWithCartesianValuesStringified() {
|
|
19
21
|
return this.toJSON({ stringify: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RainCartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesian/RainCartesianMeasureValue.ts"],"names":[],"mappings":";;;AAEA,mEAA8D;AAG9D,MAAa,yBAA0B,SAAQ,6CAAqB;IAIhE,YAAY,IAIX;QACG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,UAAU;QACN,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,MAAM,CAAC,OAAO,GAAG,EAAC,SAAS,EAAE,KAAK,EAAC;QAC/B,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"RainCartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesian/RainCartesianMeasureValue.ts"],"names":[],"mappings":";;;AAEA,mEAA8D;AAG9D,MAAa,yBAA0B,SAAQ,6CAAqB;IAIhE,YAAY,IAIX;QACG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,UAAU;QACN,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,MAAM,CAAC,OAAO,GAAG,EAAC,SAAS,EAAE,KAAK,EAAC;QAC/B,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACnC,OAAO;YACH,GAAG,IAAI;YACP,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE;SAC7B,CAAC;IACN,CAAC;IAED,oCAAoC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IAC1C,CAAC;CACJ;AA5BD,8DA4BC"}
|
package/gauge/GaugeMeasure.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Measure } from '../organization';
|
|
1
|
+
import { Link, Measure } from '../organization';
|
|
2
2
|
import { IPolarMeasureValue } from '../polar';
|
|
3
3
|
import { ICartesianMeasureValue } from '../cartesian';
|
|
4
4
|
/**
|
|
@@ -15,6 +15,17 @@ export declare class GaugeMeasure extends Measure {
|
|
|
15
15
|
configurationAsJSON?: string;
|
|
16
16
|
gauge?: string;
|
|
17
17
|
});
|
|
18
|
-
toJSON(options?:
|
|
18
|
+
toJSON(options?: {
|
|
19
|
+
removeValues?: boolean;
|
|
20
|
+
}): {
|
|
21
|
+
date: Date;
|
|
22
|
+
validity: number;
|
|
23
|
+
configurationAsJSON: string;
|
|
24
|
+
values: number[] | IPolarMeasureValue[] | ICartesianMeasureValue[];
|
|
25
|
+
id: string;
|
|
26
|
+
links: Link[];
|
|
27
|
+
version?: string;
|
|
28
|
+
};
|
|
29
|
+
protected getGaugeLinks(linksToPurify: any[]): any[];
|
|
19
30
|
protected getLinkType(): string;
|
|
20
31
|
}
|
package/gauge/GaugeMeasure.js
CHANGED
|
@@ -10,7 +10,7 @@ class GaugeMeasure extends organization_1.Measure {
|
|
|
10
10
|
constructor(json) {
|
|
11
11
|
super(json);
|
|
12
12
|
if (json.gauge) {
|
|
13
|
-
this.addLinks(
|
|
13
|
+
this.addLinks(this.getGaugeLinks([json.gauge]));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
toJSON(options) {
|
|
@@ -21,6 +21,25 @@ class GaugeMeasure extends organization_1.Measure {
|
|
|
21
21
|
}
|
|
22
22
|
return json;
|
|
23
23
|
}
|
|
24
|
+
getGaugeLinks(linksToPurify) {
|
|
25
|
+
if (!linksToPurify || linksToPurify.length === 0) {
|
|
26
|
+
return [];
|
|
27
|
+
}
|
|
28
|
+
return linksToPurify.map(l => {
|
|
29
|
+
if (l instanceof organization_1.Link) {
|
|
30
|
+
return l;
|
|
31
|
+
}
|
|
32
|
+
else if (l && l['_id']) {
|
|
33
|
+
return new GaugeNode_1.GaugeNode({ id: l['_id'].toString(), latitude: 0, longitude: 0, name: l.name, team: l.team });
|
|
34
|
+
}
|
|
35
|
+
else if (l && l.id) {
|
|
36
|
+
return new GaugeNode_1.GaugeNode({
|
|
37
|
+
id: l.id.toString(), // 'hex'
|
|
38
|
+
latitude: 0, longitude: 0, name: l.name, team: l.team
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
24
43
|
getLinkType() {
|
|
25
44
|
return GaugeMeasure.TYPE;
|
|
26
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GaugeMeasure.js","sourceRoot":"","sources":["../../src/gauge/GaugeMeasure.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"GaugeMeasure.js","sourceRoot":"","sources":["../../src/gauge/GaugeMeasure.ts"],"names":[],"mappings":";;;AAAA,kDAA8C;AAG9C,2CAAsC;AAEtC;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAO;IAMrC,YAAY,IAOC;QAET,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,OAAoC;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YAAY,CAAC,IAAI,CAAC;IAC7B,CAAC;;AAnDL,oCAoDC;AAlDiB,iBAAI,GAAG,eAAe,CAAC"}
|
package/gauge/GaugeNode.d.ts
CHANGED
|
@@ -75,7 +75,17 @@ export declare class GaugeNode extends RaainNode {
|
|
|
75
75
|
*
|
|
76
76
|
* @returns A JSON object containing the gauge node's data
|
|
77
77
|
*/
|
|
78
|
-
toJSON():
|
|
78
|
+
toJSON(): {
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
latitude: number;
|
|
82
|
+
longitude: number;
|
|
83
|
+
team: string | TeamNode;
|
|
84
|
+
configurationAsJSON: string;
|
|
85
|
+
id: string;
|
|
86
|
+
links: Link[];
|
|
87
|
+
version?: string;
|
|
88
|
+
};
|
|
79
89
|
/**
|
|
80
90
|
* Returns the link type for gauge nodes.
|
|
81
91
|
*
|