diff --git a/changelog.md b/changelog.md index 18a1a76..3731834 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2025-11-28 - 7.0.5 - fix(package) +Add package exports entry and remove legacy main/typings fields + +- Added an "exports" entry in package.json mapping "." to ./dist_ts/index.js to declare the package's ESM entrypoint. +- Removed legacy "main" and "typings" fields from package.json. +- Improves Node/module resolution and modern bundler compatibility by using the package exports field. + ## 2025-11-28 - 7.0.4 - fix(decorators) Add Symbol.metadata polyfill and import it at entry to ensure decorator metadata is available diff --git a/package.json b/package.json index 01e9195..fd69b1d 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,9 @@ "version": "7.0.4", "private": false, "description": "An advanced library for NoSQL data organization and manipulation using TypeScript with support for MongoDB, data validation, collections, and custom data types.", - "main": "dist_ts/index.js", - "typings": "dist_ts/index.d.ts", + "exports": { + ".": "./dist_ts/index.js" + }, "type": "module", "scripts": { "test": "tstest test/ --verbose --logfile --timeout 120", diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 6f4b6ec..a28a890 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartdata', - version: '7.0.4', + version: '7.0.5', description: 'An advanced library for NoSQL data organization and manipulation using TypeScript with support for MongoDB, data validation, collections, and custom data types.' }