Jérôme Benoit [Tue, 21 Feb 2023 17:47:20 +0000 (18:47 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Mon, 20 Feb 2023 21:47:35 +0000 (22:47 +0100)]
refactor(simulator): introduce HTTP methods enum
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 20 Feb 2023 20:16:51 +0000 (21:16 +0100)]
fix(simulator): clone configuration object before saving it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 20 Feb 2023 18:56:10 +0000 (19:56 +0100)]
feat(simulator): expose OCPP configuration in UI protocol
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Mon, 20 Feb 2023 14:22:20 +0000 (15:22 +0100)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 19 Feb 2023 14:30:35 +0000 (15:30 +0100)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 17 Feb 2023 19:24:06 +0000 (20:24 +0100)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 16 Feb 2023 18:43:00 +0000 (19:43 +0100)]
chore: apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 16 Feb 2023 09:25:27 +0000 (10:25 +0100)]
fix(simulator): init statistic counters without possibly overriding the
initial value
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 15 Feb 2023 14:19:07 +0000 (15:19 +0100)]
refactor(simulator): import cleanups
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 15 Feb 2023 14:06:51 +0000 (15:06 +0100)]
fix(simulator): sanity checks to circular array inputs
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 15 Feb 2023 11:31:53 +0000 (12:31 +0100)]
refactor(simulator): add type shorcuts for OCPP configuration keys
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 15 Feb 2023 06:11:28 +0000 (07:11 +0100)]
test(simulator): add cloneObject() helper tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 23:47:53 +0000 (00:47 +0100)]
test(simulator): refine hasOwnProp() helper tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 23:39:54 +0000 (00:39 +0100)]
test(simulator): use named import
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 22:42:37 +0000 (23:42 +0100)]
test(simulator): add hasOwnProp() tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 22:32:40 +0000 (23:32 +0100)]
fix(simulator): fix mocha tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 20:52:07 +0000 (21:52 +0100)]
fix(simulator): rename and fix object own property detection helper
signature
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 20:38:44 +0000 (21:38 +0100)]
feat(simulator): switch TS transpiler to ECMAScript 2022
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Tue, 14 Feb 2023 18:41:06 +0000 (19:41 +0100)]
refactor(simulator): explicitly export needed types only
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 17:04:57 +0000 (18:04 +0100)]
feat(simulator): add more OCPP 2.x.x types definition
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 15:49:53 +0000 (16:49 +0100)]
refactor(simulator): switch import to node: syntax
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 15:33:26 +0000 (16:33 +0100)]
refactor(simulator): use helper(s) where appropriate
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 14:40:47 +0000 (15:40 +0100)]
refactor(simulator): remove duplicated code in utils
use the internal module export/import pattern without introducing nasty
circular dependencies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 10:03:48 +0000 (11:03 +0100)]
refactor(simulator): sort exports
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 00:19:50 +0000 (01:19 +0100)]
build(simulator): add missing rollup external
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 14 Feb 2023 00:10:53 +0000 (01:10 +0100)]
refactor(simulator): sort exports, switch to node: import syntax for internal
librairies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 13 Feb 2023 22:28:00 +0000 (23:28 +0100)]
chore: apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Mon, 13 Feb 2023 21:50:10 +0000 (22:50 +0100)]
refactor(simulator): switch utils to internal module export/import
design pattern
utils UTs need fixing
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 13 Feb 2023 19:55:35 +0000 (20:55 +0100)]
refactor(simulator): switch to internal modules export/import design
pattern
should close all issues related circular module dependencies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 13 Feb 2023 10:26:15 +0000 (11:26 +0100)]
perf(simulator): filter array for undefined before running map()
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 12 Feb 2023 19:32:27 +0000 (20:32 +0100)]
feat(simulator): initial work on configuration components and variables
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 12 Feb 2023 17:40:43 +0000 (18:40 +0100)]
chore: apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Sun, 12 Feb 2023 16:34:20 +0000 (17:34 +0100)]
Merge branch 'main' of github.com:SAP/e-mobility-charging-stations-simulator
Jérôme Benoit [Sun, 12 Feb 2023 16:32:28 +0000 (17:32 +0100)]
fix(simulator): make the modules export/import a bit less sensitive to
nasty circular dependencies issue
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 12 Feb 2023 16:22:52 +0000 (17:22 +0100)]
chore: spell fix
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Sun, 12 Feb 2023 15:07:55 +0000 (16:07 +0100)]
refactor(simulator): add control over the OCPP stack exports
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 12 Feb 2023 14:03:13 +0000 (15:03 +0100)]
refactor(simulator): switch to named exports
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 11 Feb 2023 10:16:36 +0000 (11:16 +0100)]
chore: version 1.1.94
Jérôme Benoit [Sat, 11 Feb 2023 09:52:52 +0000 (10:52 +0100)]
fix: apply dependencies overrides
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 11 Feb 2023 09:36:51 +0000 (10:36 +0100)]
chore: apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Feb 2023 23:40:16 +0000 (00:40 +0100)]
fix(simulator): lookup OCPP configuration key case insensitively
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Feb 2023 21:10:40 +0000 (22:10 +0100)]
fix(simulator): fix brown paper bag bugs after helpers semantic fix
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Feb 2023 17:19:06 +0000 (18:19 +0100)]
fix(simulator): fix empty array detection helper semantic
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Feb 2023 16:43:20 +0000 (17:43 +0100)]
chore(simulator): apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Feb 2023 12:05:56 +0000 (13:05 +0100)]
chore: version 1.1.93
Jérôme Benoit [Fri, 10 Feb 2023 12:04:28 +0000 (13:04 +0100)]
fix: make release-it compliant with conventionnal commits
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Feb 2023 11:52:44 +0000 (12:52 +0100)]
refactor(simulator): remove unneeded intermediate variable in helper
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 10 Feb 2023 10:30:43 +0000 (11:30 +0100)]
refactor(simulator): random float generator signature simplification
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 9 Feb 2023 21:51:17 +0000 (22:51 +0100)]
refactor(simulator): make OCPPIncomingRequestService class inherit from
AsyncResource instead of needlessly proxying it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 9 Feb 2023 18:26:13 +0000 (19:26 +0100)]
Merge branch 'main' of github.com:SAP/e-mobility-charging-stations-simulator
Jérôme Benoit [Thu, 9 Feb 2023 17:48:22 +0000 (18:48 +0100)]
chore: apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 9 Feb 2023 09:55:43 +0000 (10:55 +0100)]
Merge pull request #393 from SAP/dependabot/npm_and_yarn/ui/web/sideway/formula-3.0.1
dependabot[bot] [Thu, 9 Feb 2023 07:32:31 +0000 (07:32 +0000)]
Bump @sideway/formula from 3.0.0 to 3.0.1 in /ui/web
Bumps [@sideway/formula](https://github.com/sideway/formula) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sideway/formula/releases)
- [Commits](https://github.com/sideway/formula/compare/v3.0.0...v3.0.1)
---
updated-dependencies:
- dependency-name: "@sideway/formula"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Jérôme Benoit [Tue, 7 Feb 2023 22:47:38 +0000 (23:47 +0100)]
refactor(simulator): use proper type for log format
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Feb 2023 22:15:56 +0000 (23:15 +0100)]
refactor(simulator): remove unneeded ternary operator
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Feb 2023 21:05:01 +0000 (22:05 +0100)]
fix(simulator): detect string emptiness properly without helper usage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 7 Feb 2023 20:20:10 +0000 (21:20 +0100)]
fix(simulator): detect string emptyness properly
Close #390
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 6 Feb 2023 21:19:01 +0000 (22:19 +0100)]
chore: apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 6 Feb 2023 11:15:36 +0000 (12:15 +0100)]
chore: apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 6 Feb 2023 10:50:16 +0000 (11:50 +0100)]
refactor(simulator): propagate and handle startup error at callee
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Fri, 3 Feb 2023 19:30:53 +0000 (20:30 +0100)]
chore: apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 3 Feb 2023 13:46:07 +0000 (14:46 +0100)]
refactor(simulator): remove unneeded intermediate variable in firmware
upgrade simulation code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 23:53:18 +0000 (00:53 +0100)]
fix(simulator): fix default version bump scale at firmware upgrade
simulation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 22:13:54 +0000 (23:13 +0100)]
refactor(simulator): remove unneeded intermediate variables in startup
code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 22:07:47 +0000 (23:07 +0100)]
perf(simulator): remove unneeded nullish check at startup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 21:43:28 +0000 (22:43 +0100)]
chore(ui): apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 21:04:53 +0000 (22:04 +0100)]
fix(simulator): fix delayed initialization in promise at startup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 20:39:53 +0000 (21:39 +0100)]
refactor(simulator): remove unneeded duplicate initialization at startup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 20:15:08 +0000 (21:15 +0100)]
refactor(simulator): move main process unhandled or uncaught error
logging at initialization
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 20:04:09 +0000 (21:04 +0100)]
fix(simulator): initialize charging station worker outside the
constructor
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 19:45:00 +0000 (20:45 +0100)]
refactor(simulator): move configuration checks at initialization
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 2 Feb 2023 19:17:03 +0000 (20:17 +0100)]
fix(simulator): calculate LRU cache capacity dynamically at startup to
avoid heavy evictions load
Properly calculate the number of charging stations and templates in use
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Wed, 1 Feb 2023 21:07:29 +0000 (22:07 +0100)]
chore: enforce conventionnal commits with commitlint
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 1 Feb 2023 19:46:50 +0000 (20:46 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 31 Jan 2023 20:17:53 +0000 (21:17 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 29 Jan 2023 16:13:32 +0000 (17:13 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 27 Jan 2023 21:50:02 +0000 (22:50 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 27 Jan 2023 20:43:24 +0000 (21:43 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 23:42:04 +0000 (00:42 +0100)]
Fix nullish checks
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 23:31:03 +0000 (00:31 +0100)]
UTs cleanup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 22:42:51 +0000 (23:42 +0100)]
Improve log messages prefixing
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 21:45:30 +0000 (22:45 +0100)]
Use arrow function for log messages prefixing
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 19:54:55 +0000 (20:54 +0100)]
Version 1.1.92
Jérôme Benoit [Thu, 26 Jan 2023 19:44:15 +0000 (20:44 +0100)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 19:38:27 +0000 (20:38 +0100)]
Improve isIterable() UT
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 18:27:54 +0000 (19:27 +0100)]
Improve isIterable() UT
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 15:34:07 +0000 (16:34 +0100)]
Factor out JSON schemas parsing with per OCPP stack version
specialisation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 26 Jan 2023 00:33:34 +0000 (01:33 +0100)]
Add error handling to JSON schemas file reading
Close #369
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 23:17:18 +0000 (00:17 +0100)]
Revert incorrect isEmptyString() semantic change
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 23:07:26 +0000 (00:07 +0100)]
Fix isEmptyString() UT
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 23:02:59 +0000 (00:02 +0100)]
Fix isEmptyString() semantic
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 22:42:33 +0000 (23:42 +0100)]
Empty string handling fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 22:24:54 +0000 (23:24 +0100)]
Improve empty file name handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 22:05:13 +0000 (23:05 +0100)]
Fix a null or undefined condition
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 21:36:43 +0000 (22:36 +0100)]
Falsy/truthy test fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 20:16:23 +0000 (21:16 +0100)]
README.md: fix some default values
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 19:08:54 +0000 (20:08 +0100)]
Revert wrong type change
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 18:37:20 +0000 (19:37 +0100)]
Strict null check fixes
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 25 Jan 2023 16:41:15 +0000 (17:41 +0100)]
Fix build
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>