Skip to content

Commit 329c3e1

Browse files
Bump dependencies (#70)
* Bump dependencies * Add bump dependencies entry * Fix ESLint --------- Co-authored-by: @compulim <@compulim> Co-authored-by: William Wong <compulim@hotmail.com>
1 parent c34f7d6 commit 329c3e1

File tree

16 files changed

+2129
-1581
lines changed

16 files changed

+2129
-1581
lines changed

CHANGELOG.md

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
### Removed
11-
12-
- 💢 Removed named exports, please import the defaults instead
13-
- Use `import { createChainOfResponsibility } from 'react-chain-of-responsibility'` instead
14-
- `import { createChainOfResponsibilityForFluentUI } from 'react-chain-of-responsibility/fluentUI'` for Fluent UI renderer function
15-
1610
### Added
1711

1812
- Support nested provider of same type, by [@compulim](https://github.com/compulim) in PR [#64](https://github.com/compulim/react-chain-of-responsibility/pull/64)
@@ -54,6 +48,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5448
- [`typescript@5.5.2`](https://npmjs.com/package/typescript/v/5.5.2)
5549
- Added [ESLint import/export syntax](https://npmjs.com/package/eslint-plugin-import), in PR [#68](https://github.com/compulim/react-chain-of-responsibility/pull/68)
5650
- Added [`publint`](https://npmjs.com/package/publint), in PR [#68](https://github.com/compulim/react-chain-of-responsibility/pull/68)
51+
- Bumped dependencies, in PR [#70](https://github.com/compulim/react-chain-of-responsibility/pull/70)
52+
- Development dependencies
53+
- [`@babel/preset-env@7.25.8`](https://npmjs.com/package/@babel/preset-env/v/7.25.8)
54+
- [`@babel/preset-react@7.25.7`](https://npmjs.com/package/@babel/preset-react/v/7.25.7)
55+
- [`@babel/preset-typescript@7.25.7`](https://npmjs.com/package/@babel/preset-typescript/v/7.25.7)
56+
- [`@fluentui/react@8.121.4`](https://npmjs.com/package/@fluentui/react/v/8.121.4)
57+
- [`@testing-library/dom@10.4.0`](https://npmjs.com/package/@testing-library/dom/v/10.4.0)
58+
- [`@testing-library/react@16.0.1`](https://npmjs.com/package/@testing-library/react/v/16.0.1)
59+
- [`@tsconfig/recommended@1.0.7`](https://npmjs.com/package/@tsconfig/recommended/v/1.0.7)
60+
- [`@types/jest@29.5.13`](https://npmjs.com/package/@types/jest/v/29.5.13)
61+
- [`@types/node@22.7.5`](https://npmjs.com/package/@types/node/v/22.7.5)
62+
- [`@types/react@18.3.11`](https://npmjs.com/package/@types/react/v/18.3.11)
63+
- [`@types/react-dom@18.3.1`](https://npmjs.com/package/@types/react-dom/v/18.3.1)
64+
- [`@typescript-eslint/eslint-plugin@8.8.1`](https://npmjs.com/package/@typescript-eslint/eslint-plugin/v/8.8.1)
65+
- [`@typescript-eslint/parser@8.8.1`](https://npmjs.com/package/@typescript-eslint/parser/v/8.8.1)
66+
- [`esbuild@0.24.0`](https://npmjs.com/package/esbuild/v/0.24.0)
67+
- [`eslint@9.12.0`](https://npmjs.com/package/eslint/v/9.12.0)
68+
- [`eslint-plugin-prettier@5.2.1`](https://npmjs.com/package/eslint-plugin-prettier/v/5.2.1)
69+
- [`eslint-plugin-react@7.37.1`](https://npmjs.com/package/eslint-plugin-react/v/7.37.1)
70+
- [`prettier@3.3.3`](https://npmjs.com/package/prettier/v/3.3.3)
71+
- [`tsup@8.3.0`](https://npmjs.com/package/tsup/v/8.3.0)
72+
- [`typescript@5.6.3`](https://npmjs.com/package/typescript/v/5.6.3)
73+
74+
### Removed
75+
76+
- 💢 Removed named exports, please import the defaults instead
77+
- Use `import { createChainOfResponsibility } from 'react-chain-of-responsibility'` instead
78+
- `import { createChainOfResponsibilityForFluentUI } from 'react-chain-of-responsibility/fluentUI'` for Fluent UI renderer function
5779

5880
## [0.1.0] - 2024-04-01
5981

@@ -155,6 +177,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
155177
- [`prettier@2.8.4`](https://npmjs.com/package/prettier)
156178
- [`typescript@4.9.5`](https://npmjs.com/package/typescript)
157179

180+
[Unreleased]: https://github.com/compulim/react-chain-of-responsibility/compare/v0.1.0...HEAD
158181
[0.1.0]: https://github.com/compulim/react-chain-of-responsibility/compare/v0.0.2...v0.1.0
159182
[0.0.2]: https://github.com/compulim/react-chain-of-responsibility/compare/v0.0.1...v0.0.2
160183
[0.0.1]: https://github.com/compulim/react-chain-of-responsibility/releases/tag/v0.0.1

package-lock.json

Lines changed: 2036 additions & 1515 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
"test": "npm run test --if-present --workspaces"
2828
},
2929
"devDependencies": {
30-
"@typescript-eslint/eslint-plugin": "^7.4.0",
31-
"@typescript-eslint/parser": "^7.4.0",
32-
"eslint": "^8.57.0",
30+
"@typescript-eslint/eslint-plugin": "^8.8.1",
31+
"@typescript-eslint/parser": "^8.8.1",
32+
"eslint": "^9.12.0",
3333
"eslint-import-resolver-node": "^0.3.9",
3434
"eslint-import-resolver-typescript": "^3.6.3",
3535
"eslint-plugin-import": "^2.31.0",
36-
"eslint-plugin-prettier": "^5.1.3",
37-
"eslint-plugin-react": "^7.34.1",
38-
"prettier": "^3.2.5"
36+
"eslint-plugin-prettier": "^5.2.1",
37+
"eslint-plugin-react": "^7.37.1",
38+
"prettier": "^3.3.3"
3939
}
4040
}

packages/integration-test/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
3838
}
3939
},
4040
"devDependencies": {
41-
"@babel/preset-env": "^7.24.7",
42-
"@babel/preset-react": "^7.24.7",
43-
"@types/jest": "^29.5.12",
44-
"@types/react": "^18.3.3",
41+
"@babel/preset-env": "^7.25.8",
42+
"@babel/preset-react": "^7.25.7",
43+
"@types/jest": "^29.5.13",
44+
"@types/react": "^18.3.11",
4545
"jest": "^29.7.0",
4646
"jest-environment-jsdom": "^29.7.0",
4747
"react": "^18.3.1",
4848
"react-test-renderer": "^18.3.1",
49-
"typescript": "^5.5.2"
49+
"typescript": "^5.6.3"
5050
},
5151
"dependencies": {
5252
"react-chain-of-responsibility": "^0.0.0-0"

packages/pages/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@
5151
}
5252
},
5353
"devDependencies": {
54-
"@fluentui/react": "^8.119.0",
54+
"@fluentui/react": "^8.121.4",
5555
"@tsconfig/strictest": "^2.0.5",
56-
"@types/react": "^18.3.3",
57-
"@types/react-dom": "^18.3.0",
58-
"esbuild": "^0.21.5",
56+
"@types/react": "^18.3.11",
57+
"@types/react-dom": "^18.3.1",
58+
"esbuild": "^0.24.0",
5959
"react-wrap-with": "^0.1.0",
60-
"typescript": "^5.5.2"
60+
"typescript": "^5.6.3"
6161
},
6262
"dependencies": {
6363
"react": "^18.3.1",

packages/pages/src/app/decoration/Demo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { wrapWith } from 'react-wrap-with';
44

55
type Props = { children?: ReactNode };
66

7-
const { Provider, Proxy, types } = createChainOfResponsibility<Set<string> | undefined, Props>();
7+
const { Provider, Proxy, types: _types } = createChainOfResponsibility<Set<string> | undefined, Props>();
88

99
const Bold = ({ children }: Props) => <strong>{children}</strong>;
1010
const Italic = ({ children }: Props) => <i>{children}</i>;
1111
const Plain = ({ children }: Props) => <>{children}</>;
1212

13-
const middleware: (typeof types.middleware)[] = [
13+
const middleware: (typeof _types.middleware)[] = [
1414
() => next => request => {
1515
const Next = next(request);
1616

packages/pages/src/app/fluentButton/Demo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import React, { Fragment } from 'react';
44
import { createChainOfResponsibilityForFluentUI } from 'react-chain-of-responsibility/fluentUI';
55

66
// Creates a <Provider> to contain all elements.
7-
const { Provider, types, useBuildRenderFunction } = createChainOfResponsibilityForFluentUI<IButtonProps>();
7+
const { Provider, types: _types, useBuildRenderFunction } = createChainOfResponsibilityForFluentUI<IButtonProps>();
88

99
// List of subcomponents.
1010
const Banana = () => <Fragment>🍌</Fragment>;
1111
const Orange = () => <Fragment>🍊</Fragment>;
1212

1313
// Constructs an array of middleware to handle the request and return corresponding subcomponents.
1414
// Fallback to `defaultRender` of `IRenderFunction` is handled by the hook.
15-
const middleware: (typeof types.middleware)[] = [
15+
const middleware: (typeof _types.middleware)[] = [
1616
() => next => props => (props?.iconProps?.iconName === 'Banana' ? Banana : next(props)),
1717
() => next => props => (props?.iconProps?.iconName === 'Orange' ? Orange : next(props))
1818
];

packages/pages/src/app/fluentDetailsList/Demo.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ initializeIcons();
1111

1212
const cellClassName = mergeStyles({ paddingBottom: 4, paddingLeft: 12, paddingTop: 4 });
1313

14-
const { Provider, types, useBuildRenderFunction } = createChainOfResponsibilityForFluentUI<IDetailsColumnFieldProps>();
14+
const {
15+
Provider,
16+
types: _types,
17+
useBuildRenderFunction
18+
} = createChainOfResponsibilityForFluentUI<IDetailsColumnFieldProps>();
1519

1620
const COLUMNS: IColumn[] = [
1721
{ fieldName: 'name', key: 'name', minWidth: 0, name: 'Fruit' },
@@ -30,7 +34,7 @@ const ITEMS: Item[] = [
3034
{ name: 'Orange', canClick: true, rating: 3.5 }
3135
];
3236

33-
const decorateFieldWithLink: typeof types.middleware = () => next => request => {
37+
const decorateFieldWithLink: typeof _types.middleware = () => next => request => {
3438
const NextComponent = next(request);
3539

3640
if (request?.column.fieldName === 'name' && request?.item.canClick) {
@@ -49,7 +53,7 @@ const decorateFieldWithLink: typeof types.middleware = () => next => request =>
4953
const ItemRating = ({ item }: { item: Item }) =>
5054
item.rating ? <Rating className={cellClassName} rating={item.rating} readOnly={true} /> : null;
5155

52-
const decorateFieldWithRating: typeof types.middleware = () => next => request => {
56+
const decorateFieldWithRating: typeof _types.middleware = () => next => request => {
5357
if (request?.column.fieldName === 'rating') {
5458
if (request?.item.rating) {
5559
return ItemRating;
@@ -76,7 +80,7 @@ const Inner = () => {
7680
const Demo = () => {
7781
const [shouldDecorateNameColumn, setShouldDecorateNameColumn] = useState(true);
7882
const [shouldDecorateRatingColumn, setShouldDecorateRatingColumn] = useState(true);
79-
const middleware = useMemo<readonly (typeof types.middleware)[]>(() => {
83+
const middleware = useMemo<readonly (typeof _types.middleware)[]>(() => {
8084
const middleware = [];
8185

8286
shouldDecorateNameColumn && middleware.push(decorateFieldWithLink);

packages/pages/src/app/linkDecorator/linkDecoratorService/private/util/isInternalLink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function isInternalLink(href: string, internalHosts: string[]): b
99
if (internalHosts.includes(url.host)) {
1010
return true;
1111
}
12-
} catch (error) {}
12+
} catch {}
1313

1414
return false;
1515
}

packages/pages/src/app/rowCounter/Demo.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Fragment, useCallback, useMemo, useState, type FormEventHandler } from 'react';
22
import { createChainOfResponsibility } from 'react-chain-of-responsibility';
33

4-
const { Provider, types, useBuildComponentCallback } = createChainOfResponsibility<number>();
4+
const { Provider, types: _types, useBuildComponentCallback } = createChainOfResponsibility<number>();
55

66
type Props = { items: number[] };
77

@@ -37,8 +37,8 @@ const Demo = () => {
3737
({ currentTarget: { checked } }) => setEvenOnly(checked),
3838
[setEvenOnly]
3939
);
40-
const middleware = useMemo<(typeof types.middleware)[]>(() => {
41-
const middleware: (typeof types.middleware)[] = [];
40+
const middleware = useMemo<(typeof _types.middleware)[]>(() => {
41+
const middleware: (typeof _types.middleware)[] = [];
4242

4343
evenOnly &&
4444
middleware.push(() => next => value => {

0 commit comments

Comments
 (0)