File tree Expand file tree Collapse file tree 11 files changed +70
-3396
lines changed Expand file tree Collapse file tree 11 files changed +70
-3396
lines changed Original file line number Diff line number Diff line change 27
27
cache : ' pnpm'
28
28
registry-url : https://npm.pkg.github.com/
29
29
30
+ - name : Creating .npmrc
31
+ run : |
32
+ cat << EOF > "$HOME/.npmrc"
33
+ //registry.npmjs.org/:_authToken=$NPM_TOKEN
34
+ EOF
35
+ env :
36
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
37
+
30
38
- name : Install dependencies
31
39
shell : bash
32
40
run : pnpm install --frozen-lockfile
Original file line number Diff line number Diff line change 1
1
# react-router-typesafe
2
2
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add ` useLoaderData ` hook types
8
+ - Migrate from pnpm to bun
9
+
3
10
## 1.1.0
4
11
5
12
### Minor Changes
Original file line number Diff line number Diff line change @@ -57,12 +57,12 @@ Feel free to improve the code and submit a pull request. If you're not sure abou
57
57
58
58
## Patched functions
59
59
60
- | Status | Utility | Before | After |
61
- | ------ | -------------------- | ---------- | ----------------------------------------------------- |
62
- | ✅ | ` defer ` | ` Response ` | Generic matching the first argument |
63
- | ✅ | ` useLoaderData ` | ` unknown ` | Generic function with the type of the loader function |
64
- | ✅ | ` useActionData ` | ` unknown ` | Generic function with the type of the action function |
65
- | | ` useRouteLoaderData ` | ` unknown ` | |
60
+ | Status | Utility | Before | After |
61
+ | ------ | -------------------- | ---------- | ------------------------------------------------------------ |
62
+ | ✅ | ` defer ` | ` Response ` | Generic matching the first argument |
63
+ | ✅ | ` useLoaderData ` | ` unknown ` | Generic function with the type of the loader function passed |
64
+ | ✅ | ` useActionData ` | ` unknown ` | Generic function with the type of the action function passed |
65
+ | ✅ | ` useRouteLoaderData ` | ` unknown ` | Generic function with the type of the loader function passed |
66
66
67
67
## About
68
68
Original file line number Diff line number Diff line change
1
+ [test ]
2
+ preload = " ./happydom.ts"
Original file line number Diff line number Diff line change
1
+ import { GlobalRegistrator } from '@happy-dom/global-registrator' ;
2
+
3
+ GlobalRegistrator . register ( ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-router-typesafe" ,
3
- "version" : " 1.1 .0" ,
3
+ "version" : " 1.2 .0" ,
4
4
"description" : " type safe patches of react-router-dom" ,
5
5
"main" : " ./dist/index.js" ,
6
6
"module" : " ./dist/index.mjs" ,
17
17
],
18
18
"scripts" : {
19
19
"build" : " tsup" ,
20
- "test" : " vitest" ,
21
20
"release" : " pnpm build && changeset publish"
22
21
},
23
22
"keywords" : [
36
35
},
37
36
"devDependencies" : {
38
37
"@changesets/cli" : " ^2.26.2" ,
38
+ "@happy-dom/global-registrator" : " ^11.0.6" ,
39
+ "@testing-library/react" : " ^14.0.0" ,
40
+ "bun-types" : " ^1.0.1" ,
39
41
"eslint" : " ^8.45.0" ,
42
+ "expect-type" : " ^0.16.0" ,
40
43
"prettier" : " ^3.0.0" ,
41
44
"tsup" : " ^7.1.0" ,
42
45
"typescript" : " ^5.1.6" ,
43
- "vitest" : " ^0.33.0"
44
- }
46
+ "happy-dom" : " ^11.0.6"
47
+ },
48
+ "dependencies" : {}
45
49
}
You can’t perform that action at this time.
0 commit comments