Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib": ["ES2024", "DOM"],
"module": "ESNext",
"moduleResolution": "Bundler",
"allowArbitraryExtensions": true,
"outDir": "./dist"
},
"include": ["src", "../../integrations/*/index.ts"]
Expand Down
2 changes: 1 addition & 1 deletion integrations/geocoding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"@openmapx/core": "workspace:^",
"@openmapx/integration-framework": "workspace:^",
"@openmapx/place-ids": "workspace:^",
"@openstreetmap/id-tagging-schema": "^6.18.0"
"@openstreetmap/id-tagging-schema": "^7.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
},
"dependencies": {
"@better-auth/passkey": "^1.6.18",
"@openstreetmap/id-tagging-schema": "^6.18.0",
"@openstreetmap/id-tagging-schema": "^7.0.1",
"@tanstack/react-query": "^5.101.0",
"@turf/helpers": "^7.3.5",
"@turf/nearest-point-on-line": "^7.3.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/presets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"dependencies": {
"@openmapx/core": "workspace:^",
"@openstreetmap/id-tagging-schema": "^6.18.0"
"@openstreetmap/id-tagging-schema": "^7.0.1"
},
"devDependencies": {
"@types/node": "^24.13.2",
Expand Down
8 changes: 3 additions & 5 deletions packages/presets/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ function tokenizeAliases(aliases: string[] | string | undefined): string[] {
return list.flatMap((a) => normalize(a).split(/\s+/)).filter(Boolean);
}

function tokenizeTerms(terms: string | undefined): string[] {
function tokenizeTerms(terms: string[] | string | undefined): string[] {
if (!terms) return [];
return terms
.split(",")
.map((t) => normalize(t))
.filter(Boolean);
const list = Array.isArray(terms) ? terms : terms.split(",");
return list.map((t) => normalize(t)).filter(Boolean);
}

let cachedRawPresets: Record<string, RawPreset> | undefined;
Expand Down
4 changes: 2 additions & 2 deletions packages/presets/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export interface RawPreset {
/** Raw translation entry from `dist/translations/<lang>.json` at path `<lang>.presets.presets[<presetId>]`. */
export interface RawTranslation {
name?: string;
/** Comma-separated. */
terms?: string;
/** Comma-separated in older schema releases; an array in schema v7. */
terms?: string[] | string;
/**
* Rare; treated as optional. In practice the iD schema stores this as a
* newline-separated string, but older spec docs describe it as an array,
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.