diff --git a/.changeset/mighty-icons-sleep.md b/.changeset/mighty-icons-sleep.md new file mode 100644 index 0000000..9660b36 --- /dev/null +++ b/.changeset/mighty-icons-sleep.md @@ -0,0 +1,5 @@ +--- +"@rdfjs/types": major +--- + +In some cases, loaders would report an error similar to `Could not resolve "./data-model"`. This is fixed by using `export type *` but requires [TypeScript 5+](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#support-for-export-type-) diff --git a/index.d.ts b/index.d.ts index b7a4b96..68229a6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,6 +1,6 @@ /// -export * from './data-model'; -export * from './stream'; -export * from './dataset'; -export * from './query'; +export type * from './data-model'; +export type * from './stream'; +export type * from './dataset'; +export type * from './query'; diff --git a/package-lock.json b/package-lock.json index 0708c1b..0f9dd23 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@typescript-eslint/eslint-plugin": "^4.5.0", "@typescript-eslint/parser": "^4.5.0", "eslint": "^7.12.0", - "typescript": "^4.0.3" + "typescript": "^5.7.2" } }, "node_modules/@babel/code-frame": { @@ -2431,16 +2431,16 @@ } }, "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/undici-types": { diff --git a/package.json b/package.json index fa4e4b5..a45f014 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@typescript-eslint/eslint-plugin": "^4.5.0", "@typescript-eslint/parser": "^4.5.0", "eslint": "^7.12.0", - "typescript": "^4.0.3" + "typescript": "^5.7.2" }, "bugs": { "email": "public-rdfjs@w3.org",