@il-address/data 1.0.1 → 1.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 ADDED
@@ -0,0 +1,3 @@
1
+ # Data changelog
2
+
3
+ Automated entries from the weekly [data.gov.il](https://data.gov.il) sync. Newest first.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # @il-address/data
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@il-address/data)](https://www.npmjs.com/package/@il-address/data)
4
- [![cities](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FNirTatcher%2Fil-address-autocomplete%2Fmain%2Fpackages%2Fdata%2Fmanifest.json&query=%24.built.cityCount&label=cities&color=0ea5e9)](./manifest.json)
5
- [![streets](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FNirTatcher%2Fil-address-autocomplete%2Fmain%2Fpackages%2Fdata%2Fmanifest.json&query=%24.built.uniqueStreetCount&label=streets&color=0ea5e9)](./manifest.json)
6
- [![last gov.il change](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FNirTatcher%2Fil-address-autocomplete%2Fmain%2Fpackages%2Fdata%2Fmanifest.json&query=%24.built.generatedAtDate&label=last%20gov.il%20change&color=8b5cf6)](./manifest.json)
4
+ [![cities](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2FNirTatcher%2Fil-address-autocomplete%40main%2Fpackages%2Fdata%2Fmanifest.json&query=%24.built.cityCount&label=cities&color=0ea5e9)](./manifest.json)
5
+ [![streets](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2FNirTatcher%2Fil-address-autocomplete%40main%2Fpackages%2Fdata%2Fmanifest.json&query=%24.built.uniqueStreetCount&label=streets&color=0ea5e9)](./manifest.json)
6
+ [![last gov.il change](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2FNirTatcher%2Fil-address-autocomplete%40main%2Fpackages%2Fdata%2Fmanifest.json&query=%24.built.generatedAtDate&label=last%20gov.il%20change&color=8b5cf6)](./manifest.json)
7
7
 
8
8
  Israeli city and street data for `@il-address/core`. Typically installed automatically as a transitive dependency — you usually don't import this package directly.
9
9
 
@@ -36,6 +36,7 @@ Fetches use paginated `datastore_search` (32k page size — CKAN’s cap) with `
36
36
  | `generated/streets/{cityCode}.json` | Streets for one city |
37
37
  | `generated/street-loader.js` | Lazy loader map (`cityCode → import(...)`) |
38
38
  | `manifest.json` | CKAN `lastModified`, record counts, build timestamp |
39
+ | `CHANGELOG.md` | Append-only log of what each sync changed (cities/streets) |
39
40
 
40
41
  ## Data shapes
41
42
 
@@ -124,13 +125,15 @@ Example:
124
125
  rawStreetRecordCount: number;
125
126
  streetCountByCity: Record<string, number>;
126
127
  generatedAt: string; // ISO timestamp of last content write
127
- generatedAtDate: string; // YYYY-MM-DD — last gov.il data change (README badge)
128
+ generatedAtDate: string; // DD-MM-YYYY — last gov.il data change (README badge)
128
129
  };
129
130
  }
130
131
  ```
131
132
 
132
133
  `sources.*.lastModified` comes from the government CKAN metadata (when gov.il last touched the resource). `built.generatedAt` / `generatedAtDate` are when we last synced **changed** city/street content from gov.il into `generated/` (the **last gov.il change** badge shows `generatedAtDate`). Rebuilds that only see a newer CKAN `lastModified` (same records) do not rewrite files, so the weekly sync does not open empty PRs. The cities / streets badges read counts from `manifest.json` on `main`.
133
134
 
135
+ When content does change, the build appends a dated section to `CHANGELOG.md` and writes a gitignored `sync-summary.md` used as the automated PR body (cities added/removed, street-file coverage, count deltas).
136
+
134
137
  ## Transform notes
135
138
 
136
139
  - City/street strings are trimmed; empty Hebrew names are dropped
@@ -1231,8 +1231,12 @@ const loaders = {
1231
1231
  3904: () => import("./streets/3904.json"),
1232
1232
  3905: () => import("./streets/3905.json"),
1233
1233
  3906: () => import("./streets/3906.json"),
1234
+ 3907: () => import("./streets/3907.json"),
1234
1235
  3908: () => import("./streets/3908.json"),
1235
1236
  3909: () => import("./streets/3909.json"),
1237
+ 3910: () => import("./streets/3910.json"),
1238
+ 3922: () => import("./streets/3922.json"),
1239
+ 3923: () => import("./streets/3923.json"),
1236
1240
  3987: () => import("./streets/3987.json"),
1237
1241
  4000: () => import("./streets/4000.json"),
1238
1242
  4001: () => import("./streets/4001.json"),
@@ -0,0 +1,7 @@
1
+ [
2
+ {
3
+ "code": 9000,
4
+ "nameHe": "הר בזק",
5
+ "aliases": []
6
+ }
7
+ ]
@@ -0,0 +1,7 @@
1
+ [
2
+ {
3
+ "code": 9000,
4
+ "nameHe": "שירה",
5
+ "aliases": []
6
+ }
7
+ ]
@@ -0,0 +1,7 @@
1
+ [
2
+ {
3
+ "code": 9000,
4
+ "nameHe": "פני קדם",
5
+ "aliases": []
6
+ }
7
+ ]
@@ -0,0 +1,7 @@
1
+ [
2
+ {
3
+ "code": 9000,
4
+ "nameHe": "קרן יער",
5
+ "aliases": []
6
+ }
7
+ ]
package/manifest.json CHANGED
@@ -2,19 +2,19 @@
2
2
  "sources": {
3
3
  "cities": {
4
4
  "resourceId": "8f714b6f-c35c-4b40-a0e7-547b675eee0e",
5
- "lastModified": "2026-09-06T07:17:34.297713",
5
+ "lastModified": "2026-09-20T00:30:31.916696",
6
6
  "recordCount": 1316
7
7
  },
8
8
  "streets": {
9
9
  "resourceId": "bf185c7f-1a4e-4662-88c5-fa118a244bda",
10
- "lastModified": "2026-09-01T11:51:04.226209",
11
- "recordCount": 152132
10
+ "lastModified": "2026-09-20T00:30:47.182796",
11
+ "recordCount": 152136
12
12
  }
13
13
  },
14
14
  "built": {
15
15
  "cityCount": 1316,
16
- "uniqueStreetCount": 63576,
17
- "rawStreetRecordCount": 152132,
16
+ "uniqueStreetCount": 63580,
17
+ "rawStreetRecordCount": 152136,
18
18
  "streetCountByCity": {
19
19
  "7": 8,
20
20
  "10": 1,
@@ -1248,8 +1248,12 @@
1248
1248
  "3904": 1,
1249
1249
  "3905": 1,
1250
1250
  "3906": 1,
1251
+ "3907": 1,
1251
1252
  "3908": 1,
1252
1253
  "3909": 1,
1254
+ "3910": 1,
1255
+ "3922": 1,
1256
+ "3923": 1,
1253
1257
  "3987": 1,
1254
1258
  "4000": 1439,
1255
1259
  "4001": 1,
@@ -1331,7 +1335,7 @@
1331
1335
  "9700": 471,
1332
1336
  "9800": 235
1333
1337
  },
1334
- "generatedAt": "2026-09-06T09:29:15.582Z",
1335
- "generatedAtDate": "2026-09-06"
1338
+ "generatedAt": "2026-09-20T08:32:34.008Z",
1339
+ "generatedAtDate": "20-09-2026"
1336
1340
  }
1337
1341
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@il-address/data",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Israeli city and street data for @il-address/core",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,6 +26,7 @@
26
26
  "files": [
27
27
  "generated",
28
28
  "manifest.json",
29
+ "CHANGELOG.md",
29
30
  "README.md"
30
31
  ],
31
32
  "publishConfig": {