iobroker.parcelapp 0.2.16 → 0.2.17

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/README.md CHANGED
@@ -115,6 +115,9 @@ The delivery is added to your parcel.app account and immediately appears in ioBr
115
115
  ---
116
116
 
117
117
  ## Changelog
118
+ ### 0.2.17 (2026-04-28)
119
+ - Test setup migrated to the upstream `ioBroker.example/TypeScript` standard: tests now live next to source as `src/**/*.test.ts` and run directly via `ts-node/register`, no separate test-build. Removes `tsconfig.test.json` + `build-test/` per latest-repo review feedback.
120
+
118
121
  ### 0.2.16 (2026-04-26)
119
122
  - Min js-controller correction: was incorrectly bumped to `>=7.0.23` in 0.2.15 (Wert kam aus Recherche-Synthese, nicht aus Repochecker-Source). Repochecker-recommended value is `>=6.0.11` — restored.
120
123
 
@@ -134,10 +137,6 @@ The delivery is added to your parcel.app account and immediately appears in ioBr
134
137
  ### 0.2.13 (2026-04-19)
135
138
  - Latest-repo review compliance: `common.messagebox=true` added because the admin-UI `Check Connection` and `Add Delivery` buttons route through `onMessage`. Runtime behaviour unchanged.
136
139
 
137
- ### 0.2.12 (2026-04-18)
138
- - Harden API-drift guards in `ParcelClient` and `StateManager` (non-boolean `success`, non-array `deliveries`, non-string `error_code`/`error_message`, non-object carrier map, non-string delivery fields, numeric/string `status_code`, numeric-string `timestamp_expected`, malformed `events`)
139
- - Add 38 regression tests (128 total) covering the new drift paths
140
-
141
140
  ## Support
142
141
 
143
142
  - [ioBroker Forum](https://forum.iobroker.net/)
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "parcelapp",
4
- "version": "0.2.16",
4
+ "version": "0.2.17",
5
5
  "news": {
6
+ "0.2.17": {
7
+ "en": "Test setup migrated to the upstream `ioBroker.example/TypeScript` standard: tests now live next to source as `src/**/*.test.ts` and run directly via `ts-node/register`, no separate test-build. Removes `tsconfig.test.json` + `build-test/` per latest-repo review feedback.",
8
+ "de": "Test-Setup migriert zum `ioBroker.example/TypeScript` Standard: Tests leben jetzt neben der Quelle als `src/**/*.test.ts` und laufen direkt über `ts-node/register`, kein separater Testaufbau. Entfernt `tsconfig.test.json` + `build-test/` pro neuste Repo-Review-Feedback.",
9
+ "ru": "Настройка теста перешла на стандарт выше по течению «ioBroker.example/TypeScript»: тесты теперь живут рядом с исходным кодом как «src/**/*.test.ts» и запускаются непосредственно через «ts-узел/регистр» без отдельной сборки теста. Удалить «tsconfig.test.json» + «build-test/» в соответствии с отзывами о последнем репо.",
10
+ "pt": "A configuração de teste migrou para o padrão upstream `ioBroker.example/TypeScript`: testes agora vivem ao lado do código fonte como `src/**/*.test.ts` e são executados diretamente através de `ts-node/register`, sem construção de teste separada. Remove `tsconfig.test.json` + `build-test/` por feedback de revisão de repo mais recente.",
11
+ "nl": "Testopstelling is gemigreerd naar de upstream-standaard van de \"ioBroker.\"example/TypeScript Verwijdert .",
12
+ "fr": "La configuration des tests a migré vers la norme en amont `ioBroker.example/TypeScript`: les tests sont maintenant en direct à côté de la source sous le nom `src/**/*.test.ts` et sont exécutés directement via `ts-node/register`, aucun test-build séparé. Supprime `tsconfig.test.json` + `build-test/` par les commentaires de la dernière révision.",
13
+ "it": "Configurazione del test migrata allo standard `ioBroker.example/TypeScript` a monte: i test ora vivono accanto alla sorgente come `src/**/*.test.ts` e vengono eseguiti direttamente tramite `ts-node/register`, nessun test-build separato. Rimuove `tsconfig.test.json` + `build-test/` per feedback di ultima recensione.",
14
+ "es": "Configuración de prueba migrada a la norma de `ioBroker.example/TypeScript` aguas arriba: las pruebas ahora viven al lado de la fuente como `src/**/*.test.ts` y se ejecutan directamente a través de 'ts-node/register', sin prueba separada. Elimina `tsconfig.test.json` + `build-test/` por última respuesta de revisión.",
15
+ "pl": "Konfiguracja testowa migrowała do standardu 'iBroker.example / TypeScript': testy teraz żyją obok źródła jako 'src / ** /* .test.ts' i działają bezpośrednio przez 'ts- node / register', bez oddzielnego test- build. Usuwa 'tsconfig.test.json' + 'build- test /' per latest- repo review review feeds. ",
16
+ "uk": "Тест-настроювання, що мігрується на дотик `ioBroker.example/TypeScript`` стандарт: тести тепер живуть біля джерела, як `src/*/**/*.test.ts` і запустити безпосередньо через `ts-node/register`, не окремий тест-будівельник. Вилучає `tsconfig.test.json` + `build-test/`/` за останні відгуки.",
17
+ "zh-cn": "测试设置迁移到上游`ioBroker.example/TypeScript ' 标准:测试现在作为`src/**/*.test.ts ' 存在于源旁,直接通过`ts-node/register ' 运行,没有单独的测试建设。 删除`tsconfig.test.json ' +`building-test/ ' 每一次最新检索审查反馈."
18
+ },
6
19
  "0.2.16": {
7
20
  "en": "Min js-controller correction: was incorrectly bumped to `>=7.0.23` in 0.2.15 (Wert kam aus Recherche-Synthese, nicht aus Repochecker-Source). Repochecker-recommended value is `>=6.0.11` — restored.",
8
21
  "de": "Min js-Controller-Korrektur: wurde falsch auf `>=7.0.23` in 0.2.15 (Wert kam aus Recherche-Synthese, nicht aus Repochecker-Source) gesprungen. Repochecker-recommended Wert ist `>=6.0.11` — restauriert.",
@@ -80,19 +93,6 @@
80
93
  "pl": "Błędy response-stream obsłużone. Per-delivery poll-failures odizolowane (jedna zepsuta paczka nie blokuje już pozostałych). onMessage i onUnload wzmocnione przez try/catch + callback-guard. parseStatus DRY-helper.",
81
94
  "uk": "Помилки response-stream оброблено. Per-delivery poll-failures ізольовано (одне зламане відправлення більше не блокує інші). onMessage та onUnload посилено через try/catch + callback-guard. parseStatus DRY-helper.",
82
95
  "zh-cn": "处理 response-stream 错误。隔离 per-delivery poll-failures(一个坏掉的包裹不再阻塞其他)。通过 try/catch + callback-guard 强化 onMessage 和 onUnload。parseStatus DRY-helper。"
83
- },
84
- "0.2.10": {
85
- "en": "Fix test timezone bug, remove unused devDependencies, add no-floating-promises lint rule. Remove redundant actions/checkout from CI workflow.",
86
- "de": "Test-Timezone-Bug behoben, ungenutzte devDependencies entfernt, no-floating-promises Lint-Regel hinzugefügt. Redundantes actions/checkout aus CI-Workflow entfernt.",
87
- "ru": "Test-timezone-баг виправлено, невикористані devDependencies видалено, додано no-floating-promises lint-правило. Redundant actions/checkout видалено з CI-workflow.",
88
- "pt": "Bug de test-timezone corrigido, devDependencies não usadas removidas, regra no-floating-promises adicionada. actions/checkout redundante removido do CI-workflow.",
89
- "nl": "Test-timezone bug opgelost, ongebruikte devDependencies verwijderd, no-floating-promises lint-regel toegevoegd. Overbodige actions/checkout uit CI-workflow verwijderd.",
90
- "fr": "Bug test-timezone corrigé, devDependencies inutilisées retirées, règle no-floating-promises ajoutée. actions/checkout redondant retiré du workflow CI.",
91
- "it": "Bug test-timezone corretto, devDependencies inutilizzate rimosse, regola no-floating-promises aggiunta. actions/checkout ridondante rimosso dal workflow CI.",
92
- "es": "Bug de test-timezone arreglado, devDependencies sin uso eliminadas, regla no-floating-promises añadida. actions/checkout redundante eliminado del workflow CI.",
93
- "pl": "Bug test-timezone naprawiony, nieużywane devDependencies usunięte, dodano regułę no-floating-promises. Zbędne actions/checkout usunięte z CI-workflow.",
94
- "uk": "Test-timezone-баг виправлено, невикористані devDependencies видалено, додано lint-правило no-floating-promises. Зайве actions/checkout видалено з CI-workflow.",
95
- "zh-cn": "修复 test-timezone bug,移除未使用的 devDependencies,添加 no-floating-promises lint 规则。从 CI workflow 中移除多余的 actions/checkout。"
96
96
  }
97
97
  },
98
98
  "titleLang": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.parcelapp",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "ioBroker adapter for parcel.app — track packages as ioBroker states",
5
5
  "author": {
6
6
  "name": "krobi",
@@ -44,6 +44,8 @@
44
44
  "@types/iobroker": "npm:@iobroker/types@^7.1.1",
45
45
  "@types/node": "^25.6.0",
46
46
  "rimraf": "^6.1.3",
47
+ "source-map-support": "^0.5.21",
48
+ "ts-node": "^10.9.2",
47
49
  "typescript": "~5.9.3"
48
50
  },
49
51
  "files": [
@@ -56,14 +58,12 @@
56
58
  "scripts": {
57
59
  "prebuild": "rimraf build",
58
60
  "build": "build-adapter ts",
59
- "prebuild:test": "rimraf build-test",
60
- "build:test": "tsc -p tsconfig.test.json",
61
61
  "watch": "build-adapter ts --watch",
62
62
  "check": "tsc --noEmit",
63
- "test:ts": "npm run build:test && mocha --exit \"build-test/test/test*.js\"",
63
+ "test:ts": "mocha --config test/mocharc.custom.json \"src/**/*.test.ts\"",
64
64
  "test:package": "mocha test/package --exit",
65
65
  "test:integration": "mocha test/integration --exit",
66
- "test": "npm run build && npm run test:ts && npm run test:package",
66
+ "test": "npm run test:ts && npm run test:package",
67
67
  "translate": "translate-adapter",
68
68
  "lint": "eslint",
69
69
  "lint:fix": "eslint --fix",