Skip to content

Commit

Permalink
chore: bump all (dev)Dependencies (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 11, 2023
1 parent ea85a65 commit 3d85966
Show file tree
Hide file tree
Showing 18 changed files with 1,984 additions and 1,838 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
matrix:
node:
- 16
- 18.18
- 20.9
- 18
- 20
os:
- macos-latest
- ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'CodeQL'
name: CodeQL

on:
push:
Expand All @@ -22,7 +22,8 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [javascript]
language:
- javascript

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v2

- name: Setup Node.js 16
- name: Setup Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 16
node-version: lts/*
cache: pnpm

- name: Install Dependencies
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.18
lts/*
43 changes: 22 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"workspaces": [
"packages/*"
],
"packageManager": "pnpm@8.11.0",
"packageManager": "pnpm@8.12.0",
"scripts": {
"build": "run-p build:*",
"build:r": "r -f cjs",
Expand All @@ -33,51 +33,52 @@
"vercel-build": "pnpm docs:build"
},
"devDependencies": {
"@1stg/app-config": "^9.0.0",
"@1stg/lib-config": "^12.0.0",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@1stg/app-config": "^9.0.1",
"@1stg/lib-config": "^12.0.1",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@mdx-js/rollup": "^3.0.0",
"@types/lodash": "^4.14.202",
"@types/mvdan-sh": "^0.10.9",
"@types/node": "^20.9.0",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@types/web": "^0.0.123",
"@vitejs/plugin-react-swc": "^3.4.1",
"@vitest/coverage-istanbul": "^0.34.6",
"@types/node": "^20.10.4",
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@types/web": "^0.0.127",
"@vitejs/plugin-react-swc": "^3.5.0",
"@vitest/coverage-istanbul": "^1.0.4",
"github-markdown-css": "^5.4.0",
"linguist-languages": "^7.27.0",
"lodash": "^4.17.21",
"prettier": "^3.0.3",
"prettier": "^3.1.1",
"prettier-plugin-autocorrect": "workspace:*",
"prettier-plugin-pkg": "workspace:*",
"prettier-plugin-sh": "workspace:*",
"prettier-plugin-sql": "workspace:*",
"prettier-plugin-toml": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.18.0",
"react-router-dom": "^6.20.1",
"remark-gfm": "^4.0.0",
"sass": "^1.69.5",
"sirv-cli": "^2.0.2",
"size-limit": "^10.0.2",
"size-limit": "^11.0.1",
"size-limit-preset-node-lib": "^0.3.0",
"tsx": "^4.0.0",
"tsx": "^4.6.2",
"type-coverage": "^2.27.0",
"typescript": "^5.2.2",
"unplugin-auto-import": "^0.16.7",
"vite": "^4.5.0",
"vitest": "^0.34.6"
"typescript": "^5.3.3",
"unplugin-auto-import": "^0.17.2",
"vite": "^5.0.7",
"vitest": "^1.0.4"
},
"resolutions": {
"eslint-plugin-prettier": "^5.0.1",
"prettier": "^3.0.3",
"prettier": "^3.1.1",
"prettier-plugin-autocorrect": "workspace:*",
"prettier-plugin-pkg": "workspace:*",
"prettier-plugin-sh": "workspace:*",
"prettier-plugin-sql": "workspace:*",
"prettier-plugin-toml": "workspace:*"
"prettier-plugin-toml": "workspace:*",
"rollup": "^4.8.0"
},
"browserslist": [
"extends @1stg/browserslist-config/modern"
Expand Down
2 changes: 1 addition & 1 deletion packages/autocorrect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"prettier": "^3.0.3"
},
"dependencies": {
"autocorrect-node": "^2.8.4"
"autocorrect-node": "^2.9.0"
},
"publishConfig": {
"access": "public"
Expand Down
66 changes: 33 additions & 33 deletions packages/autocorrect/test/__snapshots__/fixtures.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ exports[`parser and printer > should format all fixtures > test.go 1`] = `
"// WithContext 创建基于 ctx 的 db
// 第 2 行注释
func (d *Dao) WithContext(ctx context.Context) (db *gorm.DB) {
a := \\"第 1 个\\"
b := \\\\\`
a := "第 1 个"
b := \\\`
多行 string
第 2 行
\\\\\`
re := regexp.MustCompile(\\\\\`regexp 不处理\\\\\`)
re1 := regexp.Compile(\\"regexp不处理\\")
t := time.Parse(\\"2006年01月02日 15:04\\", t)
fmt.Println(a + b + \\"go 语言\\")
fmt.Println(\\"%s链接的内容不会空格%d也不处理,保守\\", \\"格式\\", 100)
\\\`
re := regexp.MustCompile(\\\`regexp 不处理\\\`)
re1 := regexp.Compile("regexp不处理")
t := time.Parse("2006年01月02日 15:04", t)
fmt.Println(a + b + "go 语言")
fmt.Println("%s链接的内容不会空格%d也不处理,保守", "格式", 100)
db = d.DB.WithContext(ctx)
return
}
Expand All @@ -37,14 +37,14 @@ func (d *Dao) WithContext(ctx context.Context) (db *gorm.DB) {
exports[`parser and printer > should format all fixtures > test.html 1`] = `
"<h1>编译 rust 为 WebAssembly</h1>
<div></div>
<p class=\\"summary\\">如果你写了一些 RUST 代码,你可以把它编译成 webAssembly!这份教程将带你编译 Rust 项目为 wasm 并在一个现存的 web 应用中使用它。</p></div>
<h2 id=\\"rust_和_webassembly_用例\\"><a href=\\"#rust_和_webassembly_用例\\" title=\\"Permalink to Rust和WebAssembly用例\\">Rust WebAssembly 用例</a></h2>
<p class="summary">如果你写了一些 RUST 代码,你可以把它编译成 webAssembly!这份教程将带你编译 Rust 项目为 wasm 并在一个现存的 web 应用中使用它。</p></div>
<h2 id="rust_和_webassembly_用例"><a href="#rust_和_webassembly_用例" title="Permalink to Rust和WebAssembly用例">Rust 和 WebAssembly 用例</a></h2>
<div><p>rust 和 webassembly 有两大主要用例:</p>
<ul>
<li>构建完整应用 —— 整个 web 应用都基于 rust 开发!</li>
<li>构建应用的组成部分 —— 在现存的 javascript 前端中使用 RUst。</li>
</ul>
<p>目前,Rust 团队正专注于第二种用例,因此我们也将着重介绍它。对于第一种用例,可以参阅<code><a href=\\"https://github.com/DenisKolodin/yew\\" class=\\"external\\" rel=\\" noopener\\">yew</a></code>这类项目。</p>
<p>目前,Rust 团队正专注于第二种用例,因此我们也将着重介绍它。对于第一种用例,可以参阅<code><a href="https://github.com/DenisKolodin/yew" class="external" rel=" noopener">yew</a></code>这类项目。</p>
<p>在本教程中,我们将使用 Rust 的 npm 包构建工具<code>wasm-pack</code>来构建一个 npm 包。这个包只包含 WebAssembly 和 JavaScript 代码,以便包的用户无需安装 Rust 就能使用。他们甚至不需要知道这里包含 WebAssembly!</p></div>
"
`;
Expand All @@ -58,7 +58,7 @@ exports[`parser and printer > should format all fixtures > test.md 1`] = `
> 引用文本:Quote 也是可以的。
\`\`\`rust
// Codeblock 里面也会处理
let a = \\"你好 hello\\";
let a = "你好 hello";
\`\`\`
- ![img 图片](https://google.com/a/b/url不处理)
- [link 链接](https://google.com/a/b/url不处理)\`,
Expand All @@ -68,7 +68,7 @@ let a = \\"你好 hello\\";
raw: \`fn main() {
let number_list = vec![34, 50, 25, 100, 65];
let mut largest = number_list[0];
let regexp = %r\\"包含#regexp 测试\\";
let regexp = %r"包含#regexp 测试";
// 1 第一行 Single line 注释
// 2 第二行注释
for number in number_list {
Expand All @@ -77,22 +77,22 @@ for number in number_list {
}
}
// autocorrect: false
let disable_1 = \\"这行将会 disable 掉\\";
let disable_2 = \\"这行将也会 disable 掉\\";
let disable_1 = "这行将会 disable 掉";
let disable_2 = "这行将也会 disable 掉";
// autocorrect: true
let a = r#\\"
let a = r#"
这是第 1 行
这是第 2 行
\\"#;
let b = r##\\"
"#;
let b = r##"
这是第 3 行
这是第 4 行
\\"##;
"##;
/**
* 多行 Rust 注释
* 第二行 Rust 注释
*/
println!(\\"最大的数字 number 是{}\\", largest);
println!("最大的数字 number 是{}", largest);
}
"
`;
Expand All @@ -104,31 +104,31 @@ exports[`parser and printer > should format all fixtures > test.py 1`] = `
这是多行 3 注释
'''
def hello(a):
multi_str = \\"\\"\\"
multi_str = """
第 1 行多行字符串
第 2 行多行字符串
\\"\\"\\"
"""
re = r'包含#regexp测试'
re1 = r\\"\\"\\"
re1 = r"""
包含re0测试
包含re1测试
\\"\\"\\"
re2 = re.compile( \\"hello你\\" + \\"world好\\")
"""
re2 = re.compile( "hello你" + "world好")
# 第 4 个注释
print(\\"你好 hello 世界\\")
print("你好 hello 世界")
print('你好 hello 世界')
"
`;
exports[`parser and printer > should format all fixtures > test.rb 1`] = `
"# 第 1 行注释
# 第 2 行注释
def hello(a, b: \\"第 1 个参数\\")
def hello(a, b: "第 1 个参数")
re = /hello你好/
re1 = %r{hello你好}
re2 = Regexp.new('hello你好' )
re3 = Regexp.new( \\"hello你好\\")
a = \\"hello 世界#{a}\\"
re3 = Regexp.new( "hello你好")
a = "hello 世界#{a}"
b = '你好 hello 世界'
end
"
Expand All @@ -140,15 +140,15 @@ exports[`parser and printer > should format all fixtures > test0.js 1`] = `
* 这是第 2 行
*/
function application() {
let example = \\"这是 single line 单行注释\\";
let example = "这是 single line 单行注释";
console.log(\`这是 string 第 1 行
这是 string 第 2 行
\`)
// autocorrect-disable
const disable_1 = \\"这行将会disable掉\\";
const disable_2 = \\"这行将也会disable掉\\";
const disable_1 = "这行将会disable掉";
const disable_2 = "这行将也会disable掉";
// autocorrect-enable
const c = \\"这是 string 第 3 行\\";
const c = "这是 string 第 3 行";
}
"
`;
6 changes: 3 additions & 3 deletions packages/pkg/test/__snapshots__/engines.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

exports[`engines 1`] = `
"{
\\"engines\\": {
\\"node\\": \\"batman\\",
\\"npm\\": \\"joker\\"
"engines": {
"node": "batman",
"npm": "joker"
}
}
"
Expand Down
10 changes: 5 additions & 5 deletions packages/pkg/test/__snapshots__/files.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

exports[`files 1`] = `
"{
\\"files\\": [
\\"bin\\",
\\"lib\\",
\\"rules\\",
\\"!lib/*.tsbuildinfo\\"
"files": [
"bin",
"lib",
"rules",
"!lib/*.tsbuildinfo"
]
}
"
Expand Down

0 comments on commit 3d85966

Please sign in to comment.