iobroker.parcelapp 0.2.15 → 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
@@ -32,7 +32,7 @@ ioBroker adapter that connects to the [parcel.app](https://parcelapp.net) API an
32
32
  ## Requirements
33
33
 
34
34
  - **Node.js >= 20**
35
- - **ioBroker js-controller >= 7.0.0**
35
+ - **ioBroker js-controller >= 6.0.11**
36
36
  - **ioBroker Admin >= 7.6.20**
37
37
  - **parcel.app Premium subscription** — required for API access
38
38
 
@@ -115,6 +115,12 @@ 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
+
121
+ ### 0.2.16 (2026-04-26)
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.
123
+
118
124
  ### 0.2.15 (2026-04-26)
119
125
  - Process-level `unhandledRejection` / `uncaughtException` handlers added as last-line-of-defence against fire-and-forget rejections.
120
126
  - Stop shipping the `manual-review` release-script plugin — adapter-only consequence.
@@ -131,27 +137,6 @@ The delivery is added to your parcel.app account and immediately appears in ioBr
131
137
  ### 0.2.13 (2026-04-19)
132
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.
133
139
 
134
- ### 0.2.12 (2026-04-18)
135
- - 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`)
136
- - Add 38 regression tests (128 total) covering the new drift paths
137
-
138
- ### 0.2.11 (2026-04-12)
139
- - Fix: handle response stream errors (prevents unhandled exceptions on connection drop)
140
- - Fix: isolate per-delivery poll failures (one broken delivery no longer blocks all others)
141
- - Fix: harden onMessage with try/catch and callback guard
142
- - Fix: onUnload try/catch prevents adapter hang on shutdown
143
- - DRY: parseStatus helper eliminates repeated parseInt calls
144
- - Simplify obsolete state cleanup, use setObjectNotExistsAsync for states
145
-
146
- ### 0.2.10 (2026-04-12)
147
- - Fix test timezone bug, remove unused devDependencies, add `no-floating-promises` lint rule.
148
- - Remove redundant `actions/checkout` from CI workflow.
149
-
150
- ### 0.2.9 (2026-04-08)
151
- - Standard ioBroker test suite added, test-build config optimised.
152
-
153
- Older entries have been moved to [CHANGELOG_OLD.md](CHANGELOG_OLD.md).
154
-
155
140
  ## Support
156
141
 
157
142
  - [ioBroker Forum](https://forum.iobroker.net/)
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "parcelapp",
4
- "version": "0.2.15",
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
+ },
19
+ "0.2.16": {
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.",
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.",
22
+ "ru": "Коррекция Min js-контроллера: в 0.2.15 она была неправильно увеличена до '>=7.0.23' (Wert kam aus Recherche-Synthese, nicht aus Repochecker-Source). Рекомендуемое значение репочекера ->=6.0.11 - восстановлено.",
23
+ "pt": "Min js-controller correção: foi incorretamente bateu para `>=7.0.23` em 0.2.15 (Wert kam aus Recherche-Syntheses, nicht aus Repochecker-Source). O valor recomendado pelo repochecker é `>=6.0.11` — restaurado.",
24
+ "nl": "Min js-controller correctie: werd foutief gestoten naar Repochecker aanbevolen waarde is .",
25
+ "fr": "La correction de min js-controller : a été incorrectement cognée à `>=7.0.23` dans le 0,2.15 (Wert kam aus Recherche-Synthese, nicht aus Repochecker-Source). La valeur recommandée par Repochecker est `>=6.0.11` — restaurée.",
26
+ "it": "Min js-controller correzione: è stato erroneamente urtato a `>=7.0.23` in 0.2.15 (Wert kam aus Recherche-Synthese, nicht aus Repochecker-Source). Il valore ricondizionato da repochecker è `>=6.0.11` — restaurato.",
27
+ "es": "Min js-controller correction: was incorrectly toped to `=7.0.23` in 0.2.15 (Wert kam aus Recherche-Synthese, nicht aus Repochecker-Source). Repochecker-recomendado valor es `=6.0.11` — restaurado.",
28
+ "pl": "Min js- controller correction: was intruly bone to '> = 7.0.23' in 0.2.15 (Wert kam aus Recherche- Synthes, nicht aus Repochecker- Source). Repochecker- zalecana wartość jest '> = 6.0.11' - przywrócona.",
29
+ "uk": "Нормативно прибрано до `>=7.0.23` в 0.2.15 (Верт kam aus Recherche-Synthese, nicht aus Repochecker-Source). Repochecker-recommended значення `>=6.0.11` — відновлено.",
30
+ "zh-cn": "Min js-controller校正:在0.2.15中被误撞到QQ7.0.23 ' (Wert kam aus ReResearch-Synthese, nicht aus Repochecker-Source)。 复检员推荐值为 6.0.11 ' ——恢复."
31
+ },
6
32
  "0.2.15": {
7
33
  "en": "Process-level unhandledRejection/uncaughtException handlers added as last-line-of-defence. Stop shipping the manual-review release-script plugin. Min js-controller bumped to >=7.0.23. Audit-driven boilerplate sync with the other krobi adapters (.vscode json5 schemas, tsconfig.test looser test rules). CHANGELOG_OLD cleaned up.",
8
34
  "de": "Process-level unhandledRejection/uncaughtException-Handler als Last-Line-of-Defence hinzugefügt. Das manual-review-Release-Script-Plugin entfällt. js-controller-Mindestversion auf >=7.0.23 angehoben. Audit-getriebener Boilerplate-Sync gegenüber den anderen krobi-Adaptern (.vscode json5-Schemas, tsconfig.test loosere Test-Regeln). CHANGELOG_OLD aufgeräumt.",
@@ -67,32 +93,6 @@
67
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.",
68
94
  "uk": "Помилки response-stream оброблено. Per-delivery poll-failures ізольовано (одне зламане відправлення більше не блокує інші). onMessage та onUnload посилено через try/catch + callback-guard. parseStatus DRY-helper.",
69
95
  "zh-cn": "处理 response-stream 错误。隔离 per-delivery poll-failures(一个坏掉的包裹不再阻塞其他)。通过 try/catch + callback-guard 强化 onMessage 和 onUnload。parseStatus DRY-helper。"
70
- },
71
- "0.2.10": {
72
- "en": "Fix test timezone bug, remove unused devDependencies, add no-floating-promises lint rule. Remove redundant actions/checkout from CI workflow.",
73
- "de": "Test-Timezone-Bug behoben, ungenutzte devDependencies entfernt, no-floating-promises Lint-Regel hinzugefügt. Redundantes actions/checkout aus CI-Workflow entfernt.",
74
- "ru": "Test-timezone-баг виправлено, невикористані devDependencies видалено, додано no-floating-promises lint-правило. Redundant actions/checkout видалено з CI-workflow.",
75
- "pt": "Bug de test-timezone corrigido, devDependencies não usadas removidas, regra no-floating-promises adicionada. actions/checkout redundante removido do CI-workflow.",
76
- "nl": "Test-timezone bug opgelost, ongebruikte devDependencies verwijderd, no-floating-promises lint-regel toegevoegd. Overbodige actions/checkout uit CI-workflow verwijderd.",
77
- "fr": "Bug test-timezone corrigé, devDependencies inutilisées retirées, règle no-floating-promises ajoutée. actions/checkout redondant retiré du workflow CI.",
78
- "it": "Bug test-timezone corretto, devDependencies inutilizzate rimosse, regola no-floating-promises aggiunta. actions/checkout ridondante rimosso dal workflow CI.",
79
- "es": "Bug de test-timezone arreglado, devDependencies sin uso eliminadas, regla no-floating-promises añadida. actions/checkout redundante eliminado del workflow CI.",
80
- "pl": "Bug test-timezone naprawiony, nieużywane devDependencies usunięte, dodano regułę no-floating-promises. Zbędne actions/checkout usunięte z CI-workflow.",
81
- "uk": "Test-timezone-баг виправлено, невикористані devDependencies видалено, додано lint-правило no-floating-promises. Зайве actions/checkout видалено з CI-workflow.",
82
- "zh-cn": "修复 test-timezone bug,移除未使用的 devDependencies,添加 no-floating-promises lint 规则。从 CI workflow 中移除多余的 actions/checkout。"
83
- },
84
- "0.2.9": {
85
- "en": "Standard ioBroker test suite added, test-build config optimised.",
86
- "de": "ioBroker-Standard-Test-Suite hinzugefügt, Test-Build-Config optimiert.",
87
- "ru": "Стандартний ioBroker test-suite додано, test-build-config оптимізовано.",
88
- "pt": "Test-suite padrão do ioBroker adicionado, test-build-config otimizado.",
89
- "nl": "Standaard ioBroker test-suite toegevoegd, test-build-config geoptimaliseerd.",
90
- "fr": "Suite de tests standard ioBroker ajoutée, config test-build optimisée.",
91
- "it": "Standard ioBroker test-suite aggiunta, config test-build ottimizzata.",
92
- "es": "Test-suite estándar de ioBroker añadida, config de test-build optimizada.",
93
- "pl": "Standardowy zestaw testów ioBroker dodany, test-build-config zoptymalizowany.",
94
- "uk": "Стандартний ioBroker test-suite додано, test-build-config оптимізовано.",
95
- "zh-cn": "添加 ioBroker 标准测试套件,优化 test-build-config。"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -157,7 +157,7 @@
157
157
  },
158
158
  "dependencies": [
159
159
  {
160
- "js-controller": ">=7.0.23"
160
+ "js-controller": ">=6.0.11"
161
161
  }
162
162
  ],
163
163
  "globalDependencies": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.parcelapp",
3
- "version": "0.2.15",
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",