Skip to content

Commit 42f84bb

Browse files
committed
Add typing to v3 and move to vitest
1 parent db09f29 commit 42f84bb

27 files changed

+5517
-9692
lines changed

.babelrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### Unreleased
22

3+
### 3.0.0-alpha.2
4+
- BREAKING: Now uses named exports
5+
- Publishes the types
6+
37
### 2.0.0-alpha.6
48
- Bugfix: `href` and `$href` can now also be used on the root API endpoint
59

jest.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ export default {
55
customExportConditions: ['node', 'node-addons']
66
},
77
transform: {
8-
'^.+\\.ts?$': 'ts-jest',
8+
'^.+\\.ts?$': ['ts-jest', { useESM: true }],
99
'^.+\\.js?$': 'babel-jest'
1010
},
1111
transformIgnorePatterns: [
12+
'node_modules/(hal-json-normalizer)',
1213
'node_modules/(?!(mock-xmlhttprequest))'
13-
]
14+
],
15+
extensionsToTreatAsEsm: ['.ts']
1416
}

0 commit comments

Comments
 (0)