Skip to content

Commit 8a351ff

Browse files
committed
add type: module to all packages
1 parent 0c79235 commit 8a351ff

5 files changed

Lines changed: 43 additions & 19 deletions

File tree

packages/auth/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ Provides the `UserInfo` object if the user is authenticated.
9494

9595
___
9696

97+
### loginUrl
98+
99+
`Optional` **loginUrl**: `string`
100+
101+
Set to the URL that the user is redirected to initiate the authorization flow. Useful when you need to start the login flow in a separate window or tab. Use in combination with `login({ refresh: false })`.
102+
103+
___
104+
97105
### session
98106

99107
`Optional` **session**: [`UserSession`](#UserSession)
@@ -216,7 +224,7 @@ ___
216224

217225
`Optional` **redirect**: `boolean`
218226

219-
Perform redirect after successful authentication, default to `true`.
227+
Automatically redirect the user to the login URL and to the entrypoint after successful authentication. Disabling this will disable all redirects. Defaults to `false`.
220228

221229

222230
## UserSession

packages/auth/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "@emdgroup/react-auth",
3-
"version": "1.4.0",
3+
"version": "1.5.2",
44
"description": "React hooks implementing the Authorization Code Grant Flow with PKCE.",
5-
"main": "dist/index.js",
6-
"module": "dist/index.js",
7-
"types": "dist/index.d.js",
5+
"type": "module",
6+
"main": "./dist/index.js",
7+
"exports": "./dist/index.js",
8+
"types": "dist/index.d.ts",
89
"homepage": "https://github.com/emdgroup/react-lib/tree/main/packages/auth",
910
"repository": {
1011
"type": "git",
@@ -30,7 +31,7 @@
3031
"react": ">= 17"
3132
},
3233
"dependencies": {
33-
"@emdgroup/react-query": "^1.0.0",
34-
"@emdgroup/react-storage": "^1.0.0"
34+
"@emdgroup/react-query": "^1.0.4",
35+
"@emdgroup/react-storage": "^1.0.3"
3536
}
3637
}

packages/query/package.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "@emdgroup/react-query",
3-
"version": "1.0.2",
3+
"version": "1.0.4",
44
"description": "React hooks for the fetch API with support for client-side caching",
5-
"main": "dist/index.js",
6-
"module": "dist/index.js",
5+
"type": "module",
6+
"main": "./dist/index.js",
7+
"exports": "./dist/index.js",
78
"types": "dist/index.d.ts",
89
"homepage": "https://github.com/emdgroup/react-lib/tree/main/packages/query",
910
"repository": {
@@ -15,14 +16,21 @@
1516
"docs": "npm run docs:build && ts-node ../../bin/merge-docs Exports.md QueryResponse.md",
1617
"prepack": "npm run docs && rm -rf dist && tsc --build --force"
1718
},
18-
"files": ["dist"],
19-
"keywords": ["react", "query", "fetch", "cache"],
19+
"files": [
20+
"dist"
21+
],
22+
"keywords": [
23+
"react",
24+
"query",
25+
"fetch",
26+
"cache"
27+
],
2028
"author": "Moritz Onken <onken@netcubed.de>",
2129
"license": "Apache-2.0",
2230
"peerDependencies": {
2331
"react": ">= 17"
2432
},
2533
"dependencies": {
26-
"@emdgroup/react-storage": "^1.0.1"
34+
"@emdgroup/react-storage": "^1.0.3"
2735
}
2836
}

packages/query/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState, useEffect, useCallback } from 'react';
2-
import qs from './qs';
2+
import qs from './qs.js';
33
import { useLocalStorage } from '@emdgroup/react-storage';
44

55
/**

packages/storage/package.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "@emdgroup/react-storage",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "React hooks for convenient access to localStorage and sessionStorage APIs",
5-
"main": "dist/index.js",
6-
"module": "dist/index.js",
5+
"type": "module",
6+
"main": "./dist/index.js",
7+
"exports": "./dist/index.js",
78
"types": "dist/index.d.ts",
89
"homepage": "https://github.com/emdgroup/react-lib/tree/main/packages/storage",
910
"repository": {
@@ -15,8 +16,14 @@
1516
"docs": "npm run docs:build && cp docs/Exports.md README.md",
1617
"prepack": "npm run docs && rm -rf dist && tsc --build --force"
1718
},
18-
"files": ["dist"],
19-
"keywords": ["react", "localstorage", "sessionstorage"],
19+
"files": [
20+
"dist"
21+
],
22+
"keywords": [
23+
"react",
24+
"localstorage",
25+
"sessionstorage"
26+
],
2027
"author": "Moritz Onken <onken@netcubed.de>",
2128
"license": "Apache-2.0",
2229
"peerDependencies": {

0 commit comments

Comments
 (0)