@meterapp/vehicle-db 2.71.0 → 2.73.0
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 +7 -5
- package/dist/data.js +1 -1
- package/dist/identity.d.ts +10 -0
- package/dist/identity.js +48 -6
- package/dist/packages.d.ts +3 -1
- package/dist/packages.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
An offline, international vehicle make/model catalog for Node.js and TypeScript. The package combines U.S. model-year data, the UK registered fleet, the European Union's new car and van registration register, the daily-updated Dutch vehicle register, Asian-origin vehicles registered in New Zealand, Malaysian registration transactions, Brazil's national vehicle register, an Indian manufacturer catalog, the Brazil-exclusive Hyundai HB20 family, recent U.S. model configurations from FuelEconomy.gov, and reviewed manufacturer body derivatives and Saudi model-year evidence into one small, zero-dependency API. It never makes runtime network requests.
|
|
10
10
|
|
|
11
|
-
The current snapshot spans **1990–2027** and includes **1,608 makes** and **42,
|
|
11
|
+
The current snapshot spans **1990–2027** and includes **1,608 makes** and **42,361 models** in **197,316 model years**, from **23 data sources**. Those are distinct vehicles by name, with case, accents and punctuation normalized while preserving the distinct 03+ badge, which is how the [Car Image API](https://carimage.dev/cars?ref=catalog) counts and lists them. The package's own records number more (1,620 makes from `getMakes()`), because sources spell some makes and models more than one way (`MOTO GUZZI` and `MOTO-GUZZI`) and a few makes have no model in these years; see [Snapshot stats](#snapshot-stats).
|
|
12
12
|
|
|
13
13
|
The catalog covers seven vehicle types: **Motorcycle**, **Passenger Car**, **Truck**, **Bus**, **Multipurpose Passenger Vehicle (MPV)**, **Auto Rickshaw**, and **Other Vehicle**. The European source adds continental models from Dacia, Cupra, DS, Lynk & Co, Alpine, and the Chinese brands entering Europe such as BYD, MG, Omoda, Xpeng, and Nio, as sold in the EU rather than the UK or U.S. The Dutch register keeps that coverage current: vehicles first registered this year appear within days, so 2026 models such as the BYD Atto 2 and Renault 5 E-Tech are already listed. The Asia-Pacific sources add Japanese domestic and kei models, Chinese EVs, Indian and Korean vehicles, Southeast Asian makes such as Perodua and Proton, and additional motorcycles and commercial vehicles. The Brazilian register adds the cars and motorcycles that fill Brazil's roads but are rarely sold elsewhere, such as the Fiat Argo, Mobi and Toro, the Volkswagen Gol and Saveiro, the Renault Kwid, and the Honda Biz and Pop.
|
|
14
14
|
|
|
@@ -251,10 +251,12 @@ getAppearancePackages({ makeId: 515, modelId: 2184, year: 2021, market: "US" });
|
|
|
251
251
|
// exteriorDifferences: ["grille", "front_bumper", "rear_bumper", "side_skirts", "spoiler", "wheels", "badges", "exhaust"],
|
|
252
252
|
// years: [2021, 2022, 2023, 2024], markets: ["US"], yearBasis: "model-year", evidenceIds: [...] }]
|
|
253
253
|
getAppearancePackages({ makeId: 515, modelId: 2184, year: 2021 }); // []: the package is scoped to the US
|
|
254
|
+
getAppearancePackages({ makeId: 515, modelId: 2184, year: 2021, anyMarket: true }); // [F SPORT (US)]: every market
|
|
254
255
|
```
|
|
255
256
|
|
|
256
257
|
- `slug` is the maker's package name in lower-case kebab form (`appearancePackageSlug("F SPORT")` is `f-sport`). It is unique per catalog vehicle and year (two packages may share it only in disjoint markets) and stable once published.
|
|
257
258
|
- A market-scoped package is returned only when `market` is given and in its scope; with no market, only packages without a market scope are returned.
|
|
259
|
+
- `anyMarket: true` returns every package offered on the row in that year in any market, in one call: exactly the union, by `specificationId`, of the call without a market and the call for every market. A package is included when its specification and its exterior are both unscoped, only one of them is market-scoped, or both are scoped and their market lists share a market. `market` is ignored when `anyMarket` is true. The result has the same shape and order (by `slug`, then `specificationId`) as any other call.
|
|
258
260
|
- `exteriorDifferences` are the parts the package's evidence shows differ from the base car, from a fixed list (`EXTERIOR_DIFFERENCES`): `grille`, `front_bumper`, `rear_bumper`, `side_skirts`, `wheels`, `badges`, `mirrors`, `spoiler`, `exhaust`, `lamps`, `trim_color`. A part the source does not show is not listed, and options such as a handling package are left out.
|
|
259
261
|
|
|
260
262
|
In the graph a package is a `specification` identity whose `specification.trim` is the package name, under the derivative (body) it is offered on, with `years`, `markets` and `yearBasis` from its evidence; a `visual` identity under it carries `exteriorDifferences`; and catalog links with `relation: "offered-on"` name the catalog rows it is offered on. Those rows still describe the base car, so `resolveVehicle` ignores offered-on links and never walks from a base car down to a package: `2022 Lexus LX 600` resolves exactly as before, and `2021 Lexus IS F Sport` stays `UNRESOLVED_TOKENS` instead of becoming the IS F. A performance model with its own bodywork (IS F, M3) or a body (Touring, a cab) is a catalog model, never a package.
|
|
@@ -430,11 +432,11 @@ New coverage in 2.18.0 adds 112 sourced year/model/type records and four makes (
|
|
|
430
432
|
| Sources | 23 |
|
|
431
433
|
| Vehicle types | 7 |
|
|
432
434
|
| Makes | 1,608 |
|
|
433
|
-
| Models | 42,
|
|
434
|
-
| Model years | 197,
|
|
435
|
+
| Models | 42,361 |
|
|
436
|
+
| Model years | 197,316 |
|
|
435
437
|
| Make records (`getMakes()`) | 1,620 |
|
|
436
|
-
| Model records (distinct `modelId`) | 46,
|
|
437
|
-
| Model-year records (`getModels()`) | 218,
|
|
438
|
+
| Model records (distinct `modelId`) | 46,879 |
|
|
439
|
+
| Model-year records (`getModels()`) | 218,813 |
|
|
438
440
|
| Bundled TypeScript data | 7.60 MB |
|
|
439
441
|
|
|
440
442
|
## Refreshing and rebuilding
|