Skip to content

Commit 41b6894

Browse files
committed
fix(deps): bump dependencies, correct package homepages
1 parent d6abe9a commit 41b6894

File tree

9 files changed

+750
-582
lines changed

9 files changed

+750
-582
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@1stg/eslint-config/recommended"
3+
}

.eslintrc.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

now.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
2-
"version": 2,
32
"name": "@rxts/vue",
3+
"version": 2,
44
"alias": [
55
"rx-vue.now.sh",
66
"vue-rx.now.sh"
77
],
8-
"public": true,
8+
"github": {
9+
"silent": true
10+
},
911
"builds": [
1012
{
1113
"src": "package.json",

package.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,67 +11,66 @@
1111
],
1212
"scripts": {
1313
"dev": "parcel packages/*/docs/index.html",
14-
"lint:es": "EFF_NO_LINK_RULES=true eslint . --ext js,md,mdx,ts,tsx -f friendly",
14+
"lint:es": "eslint . --ext js,md,mdx,ts,tsx -f friendly",
1515
"lint:style": "stylelint **/*.scss",
1616
"lint": "run-p lint:*",
17-
"build:es": "tsc -b --force",
18-
"build:bundle": "rollup -c node_modules/@1stg/rollup-config/module.js",
19-
"build:bundle:min": "cross-env NODE_ENV=production yarn build:bundle",
17+
"build:es": "tsc -b",
18+
"build:bundle": "r --prod",
2019
"build:docs": "parcel build packages/*/docs/index.html",
21-
"build": "rimraf dist packages/*/lib && run-p build:**",
20+
"build": "rimraf dist && run-p build:**",
2221
"serve": "serve dist",
2322
"type-coverage": "type-coverage --cache --detail --ignore-catch --ignore-files *.d.ts --strict"
2423
},
2524
"devDependencies": {
26-
"@1stg/babel-preset": "^0.6.0",
25+
"@1stg/babel-preset": "^0.7.0",
2726
"@1stg/browserslist-config": "^0.2.1",
28-
"@1stg/eslint-config": "^0.9.2",
27+
"@1stg/commitlint-config": "^0.1.0",
28+
"@1stg/eslint-config": "^0.12.10",
2929
"@1stg/husky-config": "^0.3.0",
30-
"@1stg/lint-staged": "^0.6.0",
31-
"@1stg/postcss-config": "^0.2.0",
30+
"@1stg/lint-staged": "^0.7.4",
31+
"@1stg/postcss-config": "^0.3.0",
3232
"@1stg/prettier-config": "^0.2.0",
3333
"@1stg/remark-config": "^0.2.1",
34-
"@1stg/rollup-config": "^0.8.0",
35-
"@1stg/stylelint-config": "^0.6.0",
36-
"@1stg/tsconfig": "^0.5.0",
37-
"@1stg/tslint-config": "^0.3.0",
34+
"@1stg/rollup-config": "^0.9.5",
35+
"@1stg/stylelint-config": "^0.6.3",
36+
"@1stg/tsconfig": "^0.5.1",
37+
"@1stg/tslint-config": "^0.3.3",
3838
"@babel/core": "^7.6.0",
39-
"@commitlint/cli": "^8.1.0",
40-
"@commitlint/config-conventional": "^8.1.0",
39+
"@commitlint/cli": "^8.2.0",
40+
"@commitlint/config-conventional": "^8.2.0",
4141
"@types/classnames": "^2.2.9",
4242
"@types/lodash": "^4.14.138",
43-
"@types/node": "^12.7.4",
43+
"@types/node": "^12.7.5",
4444
"@types/qrcode": "^1.3.4",
4545
"autoprefixer": "^9.6.1",
4646
"browserslist": "^4.7.0",
4747
"classnames": "^2.2.6",
4848
"core-js": "^3.2.1",
49-
"cross-env": "^5.2.1",
50-
"cssnano": "^4.1.10",
51-
"eslint": "^6.3.0",
52-
"eslint-formatter-friendly": "^7.0.0",
49+
"cross-env": "^6.0.0",
50+
"eslint": "^6.4.0",
5351
"husky": "^3.0.5",
5452
"lerna": "^3.16.4",
5553
"lerna-changelog": "^0.8.2",
56-
"lint-staged": "^9.2.5",
54+
"lint-staged": "^9.3.0",
5755
"lodash": "^4.17.15",
5856
"npm-run-all": "^4.1.5",
5957
"parcel": "^1.12.3",
6058
"postcss": "^7.0.18",
6159
"prettier": "^1.18.2",
62-
"qrcode": "^1.4.1",
60+
"qrcode": "^1.4.2",
6361
"qrious": "^4.0.2",
62+
"react": "^16.9.0",
6463
"rimraf": "^3.0.0",
65-
"rollup": "^1.21.2",
64+
"rollup": "^1.21.4",
6665
"rxjs": "^6.5.3",
6766
"sanitize.css": "^11.0.0",
6867
"sass": "^1.23.0-module.beta.1",
6968
"serve": "^11.1.0",
70-
"stylelint": "^10.1.0",
71-
"ts-node": "^8.3.0",
69+
"stylelint": "^11.0.0",
70+
"ts-node": "^8.4.1",
7271
"tslint": "^5.20.0",
73-
"type-coverage": "^2.2.0",
74-
"typescript": "^3.6.2",
72+
"type-coverage": "^2.3.0",
73+
"typescript": "^3.6.3",
7574
"vue": "^2.6.10",
7675
"vue-qrcode": "link:packages/vue-qrcode/src",
7776
"vue-qrious": "link:packages/vue-qrious/src"
@@ -89,15 +88,16 @@
8988
],
9089
"commitlint": {
9190
"extends": [
92-
"@commitlint/config-conventional"
91+
"@1stg"
9392
]
9493
},
9594
"eslintIgnore": [
9695
".cache",
9796
".parcel-cache",
9897
"dist",
9998
"lib",
100-
"packages/*/CHANGELOG.md"
99+
"packages/*/CHANGELOG.md",
100+
"!.*.js"
101101
],
102102
"prettier": "@1stg/prettier-config/vue",
103103
"renovate": {

packages/vue-qrcode/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
"version": "0.2.1",
44
"description": "🤳 A Vue component for QR code generation with `qrcode`",
55
"repository": "git@github.com:rx-ts/vue.git",
6+
"homepage": "https://github.com/rx-ts/vue/blob/master/packages/vue-qrcode",
67
"author": "JounQin <admin@1stg.me>",
78
"license": "MIT",
8-
"main": "lib/cjs.js",
9-
"module": "lib/index.js",
10-
"browser": "lib/umd.js",
11-
"unpkg": "lib/umd.min.js",
12-
"es2015": "lib/es2015.js",
13-
"esm5": "lib/index.js",
14-
"fesm5": "lib/esm.js",
15-
"types": "lib/index.d.ts",
9+
"main": "lib/cjs",
10+
"module": "lib",
11+
"jsdelivr": "lib/umd",
12+
"unpkg": "lib/umd",
13+
"es2015": "lib/es2015",
14+
"esm5": "lib",
15+
"fesm5": "lib/esm",
16+
"types": "lib",
1617
"files": [
1718
"lib",
1819
"src"

packages/vue-qrcode/src/index.ts

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import QRCode, {
55
} from 'qrcode'
66
import Vue, { ComponentOptions } from 'vue'
77

8-
export const LEVELS = Object.freeze([
8+
export const LEVELS = [
99
'low',
1010
'medium',
1111
'quartile',
@@ -14,19 +14,15 @@ export const LEVELS = Object.freeze([
1414
'M',
1515
'Q',
1616
'H',
17-
] as const)
17+
] as const
1818

19-
export const MASK_PATTERNS = Object.freeze([0, 1, 2, 3, 4, 5, 6, 7] as const)
19+
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
20+
export const MASK_PATTERNS = [0, 1, 2, 3, 4, 5, 6, 7] as const
2021

2122
// eslint-disable-next-line @typescript-eslint/no-type-alias
2223
export type MaskPattern = (typeof MASK_PATTERNS)[number]
2324

24-
export const MODES = Object.freeze([
25-
'alphanumeric',
26-
'numeric',
27-
'kanji',
28-
'byte',
29-
] as const)
25+
export const MODES = ['alphanumeric', 'numeric', 'kanji', 'byte'] as const
3026

3127
// eslint-disable-next-line @typescript-eslint/no-type-alias
3228
export type QRCodeMode = _QRCodeSegment['mode']
@@ -38,25 +34,23 @@ export interface QRCodeSegment {
3834

3935
export type QRCodeValue = string | QRCodeSegment[]
4036

41-
export const TYPES = Object.freeze([
42-
'image/png',
43-
'image/jpeg',
44-
'image/webp',
45-
] as const)
37+
export const TYPES = ['image/png', 'image/jpeg', 'image/webp'] as const
4638

4739
export type QRCodeProps = Omit<QRCodeToDataURLOptions, 'renderOptions'> & {
4840
quality?: number
4941
value: QRCodeValue
5042
}
5143

44+
const MAX_QR_VERSION = 40
45+
5246
export default ({
5347
props: {
5448
version: {
5549
type: Number,
5650
validator: (version: number) =>
5751
version === parseInt(String(version), 10) &&
5852
version >= 1 &&
59-
version <= 40,
53+
version <= MAX_QR_VERSION,
6054
},
6155
errorCorrectionLevel: {
6256
type: String,

packages/vue-qrious/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
"version": "1.4.1",
44
"description": "🤳 A Vue component for QR code generation with qrious",
55
"repository": "git@github.com:rx-ts/vue.git",
6+
"homepage": "https://github.com/rx-ts/vue/blob/master/packages/vue-qrious",
67
"author": "JounQin <admin@1stg.me>",
78
"license": "MIT",
89
"main": "lib/cjs",
910
"module": "lib",
1011
"jsdelivr": "lib/umd",
1112
"unpkg": "lib/umd",
1213
"es2015": "lib/es2015",
14+
"esm5": "lib",
1315
"fesm5": "lib/esm",
1416
"types": "lib",
1517
"files": [

packages/vue-qrious/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import QRious, { QRiousOptions } from 'qrious'
22
import Vue from 'vue'
33

4-
export const LEVELS = Object.freeze(['L', 'M', 'Q', 'H'] as const)
4+
export const LEVELS = ['L', 'M', 'Q', 'H'] as const
55

66
// eslint-disable-next-line @typescript-eslint/no-type-alias
77
export type Level = (typeof LEVELS)[number]

0 commit comments

Comments
 (0)