@tracktor/shared-module 2.14.1 → 2.14.2

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +13 -15
  2. package/package.json +9 -11
package/CHANGELOG.md CHANGED
@@ -1,20 +1,18 @@
1
1
  # Changelog
2
2
 
3
- ## [2.14.1] - 2025-07-01
3
+ ## [2.14.2] - 2025-07-02
4
4
 
5
- ### 📦 Dependencies Updates
6
- - ⬆️ **vite**: `^6.x.x` `^7.0.0` - Major upgrade with improved build performance and modern features
7
- - ⬆️ **vite-plugin-dts**: `^3.x.x` `^4.5.4` - Enhanced TypeScript declaration generation
8
- - ⬆️ **vitest**: `^1.x.x` `^1.6.1` - Latest testing improvements and bug fixes
9
- - ⬆️ **@vitejs/plugin-react**: `^4.x.x` → `^4.6.0` - Updated React plugin for better compatibility
10
- - ⬆️ **axios**: `^1.x.x` → `^1.9.0` - Security updates and performance improvements
5
+ ### 🔧 Fixed
6
+ - **package.json exports**: Fixed incorrect order of export conditions that was causing module resolution issues
7
+ - **ESBuild warnings**: Resolved warnings about unreachable `types` and `default` conditions in exports map
8
+ - **React Native compatibility**: Improved module resolution for React Native/Metro bundler
11
9
 
12
- ### 🛠️ Build System
13
- - Updated to Vite 7 for faster builds and better developer experience
14
- - Improved TypeScript compilation pipeline
15
- - Enhanced development tooling
10
+ ### 📦 Package Configuration
11
+ - **Export conditions order**: Reordered to `types` `import` `require` `default` for proper resolution
12
+ - 🛠️ **Build warnings**: Eliminated ESBuild warnings about unreachable export conditions
13
+ - 📱 **Metro bundler**: Enhanced compatibility with React Native module resolution
16
14
 
17
- ### 🔧 Technical Improvements
18
- - Better build performance and bundling optimization
19
- - Improved development server and hot module replacement
20
- - Enhanced type checking and declaration file generation
15
+ ### 🔍 Technical Details
16
+ - Fixed export conditions order where `import` and `require` were preventing `types` and `default` from being used
17
+ - Ensured TypeScript can properly resolve type declarations
18
+ - Improved cross-platform module loading reliability
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracktor/shared-module",
3
- "version": "2.14.1",
3
+ "version": "2.14.2",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "types": "./dist/main.d.ts",
@@ -12,18 +12,16 @@
12
12
  ],
13
13
  "exports": {
14
14
  ".": {
15
+ "types": "./dist/main.d.ts",
15
16
  "import": "./dist/main.js",
16
- "require": "./dist/main.cjs"
17
+ "require": "./dist/main.cjs",
18
+ "default": "./dist/main.cjs"
17
19
  },
18
20
  "./axios": {
19
- "import": {
20
- "types": "./dist/axios.d.ts",
21
- "default": "./dist/axios.js"
22
- },
23
- "require": {
24
- "types": "./dist/axios.d.ts",
25
- "default": "./dist/axios.cjs"
26
- }
21
+ "types": "./dist/axios.d.ts",
22
+ "import": "./dist/axios.js",
23
+ "require": "./dist/axios.cjs",
24
+ "default": "./dist/axios.cjs"
27
25
  }
28
26
  },
29
27
  "typesVersions": {
@@ -48,7 +46,7 @@
48
46
  "prepare": "yarn run build && husky install"
49
47
  },
50
48
  "dependencies": {
51
- "axios": "^1.10.0"
49
+ "axios": "^1.9.0"
52
50
  },
53
51
  "devDependencies": {
54
52
  "@testing-library/jest-dom": "^5.17.0",