2 Commits

Author SHA1 Message Date
00fed871fa 3.2.0 2025-06-19 23:43:43 +00:00
d2efaccaa7 feat(package): Update package.json to use exports field for dual entry points 2025-06-19 23:43:43 +00:00
4 changed files with 13 additions and 5 deletions

View File

@ -1,5 +1,11 @@
# Changelog # Changelog
## 2025-06-19 - 3.2.0 - feat(package)
Update package.json to use exports field for dual entry points
- Replaced the main and typings fields with an exports object that supports both default and web entry points
- Ensures consistency in module resolution between Node.js and browser environments
## 2025-06-19 - 3.1.0 - feat(browser) ## 2025-06-19 - 3.1.0 - feat(browser)
Implement fallback SHA256 for non-HTTPS environments and enhance browser tests for consistent hashing Implement fallback SHA256 for non-HTTPS environments and enhance browser tests for consistent hashing

View File

@ -1,10 +1,12 @@
{ {
"name": "@push.rocks/smarthash", "name": "@push.rocks/smarthash",
"version": "3.1.0", "version": "3.2.0",
"private": false, "private": false,
"description": "Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.", "description": "Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.",
"main": "dist_ts/index.js", "exports": {
"typings": "dist_ts/index.d.ts", ".": "./dist_ts/index.js",
"./web": "./dist_ts_web/index.js"
},
"scripts": { "scripts": {
"test": "(tstest test/ --web)", "test": "(tstest test/ --web)",
"build": "(tsbuild tsfolders --allowimplicitany)", "build": "(tsbuild tsfolders --allowimplicitany)",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smarthash', name: '@push.rocks/smarthash',
version: '3.1.0', version: '3.2.0',
description: 'Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.' description: 'Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.'
} }

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smarthash', name: '@push.rocks/smarthash',
version: '3.1.0', version: '3.2.0',
description: 'Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.' description: 'Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.'
} }