Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: web-infra-dev/rspress
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.39.2
Choose a base ref
...
head repository: web-infra-dev/rspress
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing 711 changed files with 10,472 additions and 7,788 deletions.
5 changes: 5 additions & 0 deletions .changeset/1741592309550-alpha-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rspress/core': alpha
---

Release version 2.0.0-alpha.1
4 changes: 4 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -5,6 +5,10 @@
"linked": [],
"access": "restricted",
"baseBranch": "main",
"privatePackages": {
"version": false,
"tag": false
},
"fixed": [["@rspress/*", "rspress", "create-rspress"]],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true,
24 changes: 12 additions & 12 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## Summary

## Related Issue

<!--- Provide link of related issues -->

## Checklist

<!--- Check and mark with an "x" -->

- [ ] Tests updated (or not required).
- [ ] Documentation updated (or not required).
## Summary

## Related Issue

<!--- Provide link of related issues -->

## Checklist

<!--- Check and mark with an "x" -->

- [ ] Tests updated (or not required).
- [ ] Documentation updated (or not required).
20 changes: 10 additions & 10 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"change: feat":
- "/^(feat|types|style)/"
"change: fix":
- "/^fix/"
"change: perf":
- "/^perf/"
"change: breaking":
- "/^breaking change/"
"change: docs":
- "/^docs/"
'change: feat':
- '/^(feat|types|style)/'
'change: fix':
- '/^fix/'
'change: perf':
- '/^perf/'
'change: breaking':
- '/^breaking change/'
'change: docs':
- '/^docs/'
12 changes: 6 additions & 6 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -8,19 +8,19 @@ changelog:
categories:
- title: Breaking Changes 🍭
labels:
- "change: breaking"
- 'change: breaking'
- title: New Features 🎉
labels:
- "change: feat"
- 'change: feat'
- title: Performance 🚀
labels:
- "change: perf"
- 'change: perf'
- title: Bug Fixes 🐞
labels:
- "change: fix"
- 'change: fix'
- title: Document 📖
labels:
- "change: docs"
- 'change: docs'
- title: Other Changes
labels:
- "*"
- '*'
50 changes: 25 additions & 25 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", "schedule:weekly"],
"packageRules": [
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: ['config:recommended', 'schedule:weekly'],
packageRules: [
// Use chore as semantic commit type for commit messages
{
"matchPackagePatterns": ["*"],
"semanticCommitType": "chore",
matchPackagePatterns: ['*'],
semanticCommitType: 'chore',
// always bump package.json
"rangeStrategy": "bump"
rangeStrategy: 'bump',
},
{
"groupName": "rsbuild",
"packagePatterns": ["rsbuild"],
"groupSlug": "rsbuild"
groupName: 'rsbuild',
packagePatterns: ['rsbuild'],
groupSlug: 'rsbuild',
},
{
"groupName": "modern-js",
"packagePatterns": ["modern-js"],
"groupSlug": "modern-js"
groupName: 'modern-js',
packagePatterns: ['modern-js'],
groupSlug: 'modern-js',
},
{
"groupName": "all patch dependencies",
"groupSlug": "all-patch",
"matchPackagePatterns": ["*"],
"matchUpdateTypes": ["patch"]
groupName: 'all patch dependencies',
groupSlug: 'all-patch',
matchPackagePatterns: ['*'],
matchUpdateTypes: ['patch'],
},
// manually update peer dependencies
{
"depTypeList": ["peerDependencies"],
"enabled": false
}
depTypeList: ['peerDependencies'],
enabled: false,
},
],
"ignoreDeps": [
ignoreDeps: [
// manually updating
"typescript",
'typescript',
// align Node.js version minimum requirements
"@types/node",
"node",
"pnpm"
]
'@types/node',
'node',
'pnpm',
],
}
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -28,7 +28,9 @@ jobs:
fetch-depth: 1

- name: Install Pnpm
run: corepack enable
run: |
npm install -g corepack@latest --force
corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
2 changes: 1 addition & 1 deletion .github/workflows/pr-label.yaml
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ jobs:
steps:
- uses: github/issue-labeler@v3.4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
repo-token: '${{ secrets.GITHUB_TOKEN }}'
configuration-path: .github/pr-labeler.yml
enable-versioned-regex: 0
include-title: 1
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -37,7 +37,9 @@ jobs:
ref: ${{ github.event.inputs.branch }}

- name: Install Pnpm
run: corepack enable
run: |
npm install -g corepack@latest --force
corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
8 changes: 5 additions & 3 deletions .github/workflows/test-Windows.yml
Original file line number Diff line number Diff line change
@@ -38,7 +38,9 @@ jobs:
fetch-depth: 1

- name: Install Pnpm
run: corepack enable
run: |
npm install -g corepack@latest --force
corepack enable
- name: Check skip CI
shell: bash
@@ -59,7 +61,7 @@ jobs:
id: nx-cache
uses: actions/cache@v4
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ runner.os }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-${{ runner.os }}
@@ -78,7 +80,7 @@ jobs:

- name: E2E Test
if: ${{steps.skip-ci.outputs.RESULT != 'true'}}
run: npx playwright install --with-deps chromium && pnpm run test:e2e
run: pnpm playwright install --with-deps chromium && pnpm run test:e2e

- name: Upload Playwright Report
uses: actions/upload-artifact@v4
8 changes: 5 additions & 3 deletions .github/workflows/test-macOS.yml
Original file line number Diff line number Diff line change
@@ -33,7 +33,9 @@ jobs:
fetch-depth: 1

- name: Install Pnpm
run: corepack enable
run: |
npm install -g corepack@latest --force
corepack enable
- name: Check skip CI
run: echo "RESULT=$(node ./scripts/skipCI.js)" >> "$GITHUB_OUTPUT"
@@ -53,7 +55,7 @@ jobs:
id: nx-cache
uses: actions/cache@v4
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ runner.os }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-${{ runner.os }}
@@ -72,7 +74,7 @@ jobs:

- name: E2E Test
if: ${{steps.skip-ci.outputs.RESULT != 'true'}}
run: npx playwright install --with-deps chromium && pnpm run test:e2e
run: pnpm playwright install --with-deps chromium && pnpm run test:e2e

- name: Upload Playwright Report
uses: actions/upload-artifact@v4
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npx --no-install lint-staged
pnpm --no-install lint-staged
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/hydrogen
v23.7.0
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Ignore artifacts
dist
compiled
doc_build

# ignore all JS/TS files, use Biome
**/*.js
**/*.ts
**/*.jsx
**/*.tsx

# ignore pnpm-lock
pnpm-lock.yaml
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "avoid"
"plugins": ["prettier-plugin-packagejson"]
}
7 changes: 6 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"recommendations": ["biomejs.biome", "esbenp.prettier-vscode", "streetsidesoftware.code-spell-checker"]
"recommendations": [
"biomejs.biome",
"esbenp.prettier-vscode",
"streetsidesoftware.code-spell-checker",
"unifiedjs.vscode-mdx"
]
}
Loading