Skip to content

Commit 86bbd2c

Browse files
authored
Merge branch 'v2' into dependabot/npm_and_yarn/axios-1.16.0
2 parents e3003cd + 5f259de commit 86bbd2c

1,439 files changed

Lines changed: 8774 additions & 3284 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1212

1313
env:
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1615

1716
permissions: {}
1817

@@ -24,6 +23,7 @@ jobs:
2423
contents: write # to create release (changesets/action)
2524
issues: write # to post issue comments (changesets/action)
2625
pull-requests: write # to create pull request (changesets/action)
26+
id-token: write # to request OIDC token for npm Trusted Publishing
2727
name: Release
2828
runs-on: ubuntu-latest
2929
steps:
@@ -57,4 +57,4 @@ jobs:
5757
publish: yarn ci-publish
5858
env:
5959
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
60-
NPM_TOKEN: ${{ env.NPM_TOKEN }}
60+
NPM_CONFIG_PROVENANCE: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ yarn-error.log*
99
.npmrc
1010
.yarnrc
1111
.yarnrc.yml # https://yarnpkg.com/configuration/yarnrc
12+
**/.claude/settings.local.json
1213

1314
# https://next.yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
1415
.pnp.*

codecov.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ coverage:
33
status:
44
project:
55
default:
6-
target: auto
7-
threshold: 2%
6+
target: auto
7+
threshold: 1%
8+
removed_code_behavior: adjust_base
9+
if_ci_failed: error
10+
if_not_found: success
811
patch:
912
default:
10-
target: auto
11-
threshold: 2%
13+
target: auto
14+
threshold: 5%
15+
informational: true

examples/react-template/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
"react-dom": "^18.0.0"
88
},
99
"devDependencies": {
10-
"@testing-library/jest-dom": "^5.16.5",
11-
"@testing-library/react": "^13.4.0",
10+
"@testing-library/jest-dom": "^6.0.0",
11+
"@testing-library/react": "^15.0.0",
1212
"del-cli": "^5.0.0",
13-
"eslint": "^8.25.0",
14-
"eslint-config-trendmicro": "^3.0.0",
15-
"eslint-plugin-import": "latest",
16-
"eslint-plugin-jsx-a11y": "latest",
17-
"eslint-plugin-react": "latest",
18-
"eslint-plugin-react-hooks": "latest",
13+
"eslint": "^9.26.0",
14+
"eslint-config-trendmicro": "^4.1.0",
15+
"eslint-plugin-import": "^2.32.0",
16+
"eslint-plugin-jsx-a11y": "^6.10.2",
17+
"eslint-plugin-react": "^7.37.5",
18+
"eslint-plugin-react-hooks": "^7.0.1",
1919
"jest-watch-typeahead": "^2.2.1",
2020
"react-scripts": "^5.0.1",
2121
"web-vitals": "^2.1.4"

packages/changelog-github/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"cross-env": "^7.0.3",
3434
"del-cli": "^5.0.0",
3535
"eslint": "^9.26.0",
36-
"eslint-config-trendmicro": "^4.0.0",
36+
"eslint-config-trendmicro": "^4.4.1",
3737
"eslint-plugin-import": "^2.32.0",
3838
"eslint-plugin-jsx-a11y": "^6.10.2",
3939
"eslint-plugin-react": "^7.37.5",

packages/codemod/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default defineConfig([
2525
'build',
2626
'dist',
2727
'node_modules',
28-
'__fixtures__',
28+
'**/__fixtures__/**',
2929
],
3030
},
3131
]);

packages/codemod/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@trendmicro/babel-config": "^1.0.2",
3636
"del-cli": "^5.0.0",
3737
"eslint": "^9.26.0",
38-
"eslint-config-trendmicro": "^4.0.0",
38+
"eslint-config-trendmicro": "^4.4.1",
3939
"eslint-plugin-import": "^2.32.0",
4040
"eslint-plugin-jsx-a11y": "^6.10.2",
4141
"eslint-plugin-react": "^7.37.5",

packages/mcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"cross-env": "^7.0.3",
6666
"del-cli": "^5.0.0",
6767
"eslint": "^9.26.0",
68-
"eslint-config-trendmicro": "^4.0.0",
68+
"eslint-config-trendmicro": "^4.4.1",
6969
"eslint-import-resolver-typescript": "3.6.3",
7070
"eslint-plugin-import": "^2.32.0",
7171
"globals": "^15.0.0",

packages/mcp/src/__tests__/server.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('createMcpServer', () => {
6868
The description of the tool contains the available packages, as listed below:
6969
- @tonic-ui/react@2.0.0
7070
71-
1. Pick the most suitable package from the above list, and use that as the \"packages\" argument for this tool's execution, to get the docs content. If it's just one, let it be an array with one package.
71+
1. Pick the most suitable package from the above list, and use that as the "packages" argument for this tool's execution, to get the docs content. If it's just one, let it be an array with one package.
7272
2. Analyze the URLs listed in the content.
7373
3. Then use "fetch-pages" tool to fetch specific documentation pages relevant to the user's question with the subsequent tool call.`);
7474

packages/mcp/src/utils.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function fetchFromUrl(urlString: string): Promise<string> {
3333
return content;
3434
} catch (error) {
3535
const errorMessage = error instanceof Error ? error.message : String(error);
36-
throw new Error(`Failed to fetch ${urlString}: ${errorMessage}`);
36+
throw new Error(`Failed to fetch ${urlString}: ${errorMessage}`, { cause: error });
3737
}
3838
}
3939

@@ -89,9 +89,7 @@ async function loadFromFilePath(
8989
}
9090
for (const ext of extensions) {
9191
const candidate = filePath + ext;
92-
// eslint-disable-next-line no-await-in-loop
9392
if (await exists(candidate)) {
94-
// eslint-disable-next-line no-await-in-loop
9593
return await fs.readFile(candidate, 'utf-8');
9694
}
9795
}
@@ -110,7 +108,7 @@ export function trimTrailingSlashAndWhitespace(url: string | undefined): string
110108
if (typeof url !== 'string') {
111109
return '';
112110
}
113-
return url.replace(/[\/\s]+$/, '');
111+
return url.replace(/[\/\s]+$/, ''); // eslint-disable-line no-useless-escape
114112
}
115113

116114
/**
@@ -176,7 +174,6 @@ export async function processUrls(
176174
let error;
177175

178176
try {
179-
// eslint-disable-next-line no-await-in-loop
180177
content = await _processUrl(url);
181178
} catch (err) {
182179
error = err;

0 commit comments

Comments
 (0)