Skip to content

Commit 3dc15d1

Browse files
committed
feat: add getDimensionByDOM
1 parent f4a90b9 commit 3dc15d1

File tree

11 files changed

+2785
-1821
lines changed

11 files changed

+2785
-1821
lines changed

.changeset/giant-emus-nail.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@masknet/kit': patch
3+
---
4+
5+
rename getDimensionAsPNG to getDimensionOfPNG

.changeset/pink-rules-fail.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@masknet/kit': patch
3+
---
4+
5+
rename getDimensionAsJPEG to getDimensionOfJPEG

.changeset/rude-chicken-wait.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@masknet/kit': minor
3+
---
4+
5+
add getDimensionByDOM

.github/workflows/publish.yml

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
name: Publish
22

33
on:
4-
push:
5-
branches: [master]
4+
push:
5+
branches: [master]
66

77
jobs:
8-
publish:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v3
12-
with:
13-
fetch-depth: 0
14-
- uses: pnpm/action-setup@v2
15-
- uses: actions/setup-node@v3
16-
with:
17-
node-version: '18'
18-
cache: 'pnpm'
19-
- run: pnpm install
20-
- run: npx tsc
21-
- uses: changesets/action@v1
22-
with:
23-
publish: pnpm run release
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
- uses: pnpm/action-setup@v2
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: '18'
18+
cache: 'pnpm'
19+
- run: pnpm install
20+
- run: npx tsc
21+
- uses: changesets/action@v1
22+
with:
23+
publish: pnpm run release
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.vscode/settings.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"editor.formatOnSave": true,
33
"editor.codeActionsOnSave": {
4-
"source.fixAll": true
5-
}
4+
"source.fixAll": "explicit"
5+
},
6+
"typescript.tsdk": "node_modules/typescript/lib"
67
}

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"release": "pnpm run build && npx changeset publish"
2020
},
2121
"devDependencies": {
22-
"@changesets/cli": "^2.26.1",
23-
"@masknet/config": "^0.2.0",
24-
"prettier": "^2.8.8",
25-
"typescript": "^5.0.4",
26-
"user-agent-data-types": "^0.3.1"
22+
"@changesets/cli": "^2.27.1",
23+
"@masknet/config": "^0.2.1",
24+
"prettier": "^3.2.4",
25+
"typescript": "^5.3.3",
26+
"user-agent-data-types": "^0.4.2"
2727
}
2828
}

0 commit comments

Comments
 (0)