Jérôme Benoit [Thu, 1 Jun 2023 02:43:07 +0000 (04:43 +0200)]
refactor: encapsulate worker in an object
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 1 Jun 2023 02:07:56 +0000 (04:07 +0200)]
fix: ensure all charging stations are started as an async resource
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 1 Jun 2023 02:01:38 +0000 (04:01 +0200)]
perf: run charging station as async resource in the worker set mode
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 31 May 2023 21:52:33 +0000 (23:52 +0200)]
feat: add configuration tunable for logging enablement
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 31 May 2023 20:29:56 +0000 (22:29 +0200)]
refactor: throw error at simalator start/stop outside the main thread
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 31 May 2023 20:19:08 +0000 (22:19 +0200)]
fix: guard against concurrent simulator start/stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 31 May 2023 19:58:24 +0000 (21:58 +0200)]
chore: version 1.2.15
Jérôme Benoit [Wed, 31 May 2023 19:53:59 +0000 (21:53 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 30 May 2023 20:08:29 +0000 (22:08 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 30 May 2023 19:30:02 +0000 (21:30 +0200)]
fix: fix commonjs import issue with node.js 16.x.x
Close #582
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 30 May 2023 10:57:02 +0000 (12:57 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 17:48:20 +0000 (19:48 +0200)]
fix: allow to set some x509 certificates in templates
It's relevant for public root CA
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 15:13:26 +0000 (17:13 +0200)]
refactor: use mnemonist queue implementation instead of homebrew one
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 13:50:46 +0000 (15:50 +0200)]
test(simulator): use standard file namespace for tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 13:33:14 +0000 (15:33 +0200)]
perf: use O(1) queue implementation in async locking code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 13:08:56 +0000 (15:08 +0200)]
refactor(simulator): factor out statistic helpers
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 12:44:23 +0000 (14:44 +0200)]
refactor: cleanup async lock acquire()
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 12:34:53 +0000 (14:34 +0200)]
refactor: cleanup UI server variable namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 10:58:57 +0000 (12:58 +0200)]
fix: ensure internal counters are zeroed at simulator stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 29 May 2023 08:47:39 +0000 (10:47 +0200)]
build(simulator): ensure ui code is not included at cf push
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 22:42:28 +0000 (00:42 +0200)]
build(simulator): silence rollup warning
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 21:01:28 +0000 (23:01 +0200)]
refactor(simulator): convert more class static helpers to arrow function
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 20:39:52 +0000 (22:39 +0200)]
refactor(simulator): export directly logger helper
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 20:33:20 +0000 (22:33 +0200)]
refactor(simulator): convert some class method helpers to arrow function
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 19:10:12 +0000 (21:10 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 16:01:22 +0000 (18:01 +0200)]
refactor: cleanup UI service method namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 14:04:49 +0000 (16:04 +0200)]
build: update excluded assets files list
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 13:41:28 +0000 (15:41 +0200)]
build: update pnpm lockfile version
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 12:22:45 +0000 (14:22 +0200)]
refactor(simulator): use spread syntax to handle literal arguments
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 11:49:17 +0000 (13:49 +0200)]
build(simulator): cleanup bundler configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 11:26:12 +0000 (13:26 +0200)]
build(simulator): always minify bundle
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 10:56:45 +0000 (12:56 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 28 May 2023 10:05:32 +0000 (12:05 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 20:44:22 +0000 (22:44 +0200)]
refactor: only copy assets used at runtime in the bundle
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 19:35:06 +0000 (21:35 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 18:43:44 +0000 (20:43 +0200)]
refactor: cleanup imports
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 18:18:08 +0000 (20:18 +0200)]
refactor: cleanup configuration handling methods namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 13:57:56 +0000 (15:57 +0200)]
fix: do not send UI protocol response if no handler is found
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 13:39:02 +0000 (15:39 +0200)]
fix: ensure template has priority over CS configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 12:37:24 +0000 (14:37 +0200)]
fix: clone ATG connector status before altering it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 12:30:16 +0000 (14:30 +0200)]
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 27 May 2023 12:22:59 +0000 (14:22 +0200)]
fix: fix CS configuration hash calculation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 22:55:58 +0000 (00:55 +0200)]
fix: fix default error params setting
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 22:44:54 +0000 (00:44 +0200)]
refactor: factor out default error handling params
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 22:27:06 +0000 (00:27 +0200)]
refactor: factor out default OCPP request params value
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 22:06:58 +0000 (00:06 +0200)]
refactor: convert WorkerUtils class static methods to constified arrow
function
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 21:47:31 +0000 (23:47 +0200)]
refactor: stop !== shutdown semantic
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 19:40:41 +0000 (21:40 +0200)]
chore: version 1.2.14
Jérôme Benoit [Fri, 26 May 2023 19:30:23 +0000 (21:30 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 13:07:53 +0000 (15:07 +0200)]
fix: fix undefined payload check in UI server code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 12:55:36 +0000 (14:55 +0200)]
fix: only send UI server response when needed
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 12:35:37 +0000 (14:35 +0200)]
refactor: format error message properly
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 11:20:55 +0000 (13:20 +0200)]
fix: ensure simulator stop wait for started CS only stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 10:58:21 +0000 (12:58 +0200)]
build: silence rollup warning
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 26 May 2023 10:55:09 +0000 (12:55 +0200)]
fix: wait for charging stations to be stopped at simulator stop
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 25 May 2023 22:02:19 +0000 (00:02 +0200)]
feat: add graceful shutdown
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 25 May 2023 19:42:52 +0000 (21:42 +0200)]
refactor(simulator): factor out data transfer response
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 25 May 2023 19:26:36 +0000 (21:26 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 25 May 2023 15:56:59 +0000 (17:56 +0200)]
fix: fix chalk invocation in configuration file handling code
Extracted from PR #574
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 24 May 2023 21:23:52 +0000 (23:23 +0200)]
fix: does not override ATG configuration with default one
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 24 May 2023 21:21:27 +0000 (23:21 +0200)]
refactor(simulator): simplify ATG default configuration usage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 24 May 2023 21:08:59 +0000 (23:08 +0200)]
refactor(simulator): add more default values to ATG
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 24 May 2023 20:56:29 +0000 (22:56 +0200)]
refactor(simulator): factor out default ATG configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 24 May 2023 18:58:59 +0000 (20:58 +0200)]
refactor(simulator): rename checkTemplateFile() -> checkTemplate()
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 24 May 2023 18:50:03 +0000 (20:50 +0200)]
refactor(simulator): warn at startup for missing id tags file
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 24 May 2023 14:11:47 +0000 (16:11 +0200)]
fix: revert incorrect id tags cache key building
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 24 May 2023 13:25:23 +0000 (15:25 +0200)]
refactor(simulator): strong type worker data for evses
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 23 May 2023 08:35:49 +0000 (10:35 +0200)]
refactor: improve error log messages
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 23 May 2023 08:34:08 +0000 (10:34 +0200)]
refactor: improve error logging
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 23 May 2023 07:25:03 +0000 (09:25 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 22 May 2023 22:08:46 +0000 (00:08 +0200)]
fix: ensure the runtime ATG configuration is saved
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 22 May 2023 18:38:27 +0000 (20:38 +0200)]
fix: properly fallback to template OCPP configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 22 May 2023 16:37:38 +0000 (18:37 +0200)]
fix: ensure no empty string as supervision url can be used at runtime
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 22 May 2023 14:12:21 +0000 (16:12 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 22 May 2023 08:48:13 +0000 (10:48 +0200)]
fix: various fixes to files handling and their content caching
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 22 May 2023 05:18:17 +0000 (07:18 +0200)]
refactor: align constants scope syntax
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 21 May 2023 23:14:23 +0000 (01:14 +0200)]
refactor: organize constants
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 21 May 2023 22:12:43 +0000 (00:12 +0200)]
refactor: cleanup constants namespace
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 21 May 2023 11:28:56 +0000 (13:28 +0200)]
docs: fix sections level
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 21 May 2023 11:25:47 +0000 (13:25 +0200)]
docs: add OCPP 2.x.x sections
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 21 May 2023 09:17:53 +0000 (11:17 +0200)]
build(deps-dev): update overrides got version
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 20 May 2023 23:26:24 +0000 (01:26 +0200)]
build(simulator): refine pnpm overrides
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 20 May 2023 23:12:36 +0000 (01:12 +0200)]
fix: fix overrides handling for dependencies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 20 May 2023 20:11:27 +0000 (22:11 +0200)]
refactor(simulator): remove unused async lock class attribute
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 20 May 2023 19:59:36 +0000 (21:59 +0200)]
refactor(simulator): move configuration related helpers
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 20 May 2023 19:32:50 +0000 (21:32 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 20 May 2023 19:15:19 +0000 (21:15 +0200)]
refactor(simulator): factor out common helpers
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 20 May 2023 15:03:20 +0000 (17:03 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 20 May 2023 12:39:10 +0000 (14:39 +0200)]
build(simulator): use module imports for performance
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 20 May 2023 12:29:28 +0000 (14:29 +0200)]
build(simulator): don't preserve modules
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 19 May 2023 20:36:50 +0000 (22:36 +0200)]
refactor(ui): order types export
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 19 May 2023 20:35:53 +0000 (22:35 +0200)]
refactor(ui): add types export control
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 19 May 2023 20:14:39 +0000 (22:14 +0200)]
refactor: revert internal exports
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 19 May 2023 16:55:16 +0000 (18:55 +0200)]
refactor: revert internal exports
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 19 May 2023 16:06:11 +0000 (18:06 +0200)]
refactor: revert internal exports in utils
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 19 May 2023 10:53:54 +0000 (12:53 +0200)]
refactor: revert internal exports in exception
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 19 May 2023 10:51:27 +0000 (12:51 +0200)]
refactor: revert internal exports
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 19 May 2023 10:42:08 +0000 (12:42 +0200)]
build(deps-dev): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 18 May 2023 16:38:42 +0000 (18:38 +0200)]
build(ui): sync volta versions
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 18 May 2023 16:21:37 +0000 (18:21 +0200)]
build(deps): apply updates
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>