Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 15, 2022
1 parent 85bc226 commit ce8281e
Show file tree
Hide file tree
Showing 24 changed files with 2,271 additions and 4,757 deletions.
14 changes: 0 additions & 14 deletions .eslintrc

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@antfu'],
}
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1

- name: Install
run: npx pnpm i
- name: Install
run: npx pnpm i

- name: Lint
run: npm run lint
- name: Lint
run: npm run lint

- name: Test
run: npm test
- name: Test
run: npm test
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"reactified",
"vue"
]
}
}
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ function sum(x, y) {
}

let a = 1
let b = 2
const b = 2

let c = sum(a, b) // c = a + b = 3
const c = sum(a, b) // c = a + b = 3

a = 2

Expand All @@ -43,7 +43,7 @@ import { log } from 'vue-chemistry/console'
const a = ref(1)
const b = ref(2)

let c = sum(a, b) // c = a + b = 3
const c = sum(a, b) // c = a + b = 3

set(a, 2) // shorthand for a.value = 2

Expand All @@ -64,7 +64,8 @@ function sum(x: number, y: number) {
```

```ts
import { computed, unref, Ref, ComputedRef } from 'vue'
import type { ComputedRef, Ref } from 'vue'
import { computed, unref } from 'vue'

// reactified function
function sum(
Expand Down Expand Up @@ -99,9 +100,9 @@ Functions available in the following namespaces

```js
// see the auto-completion for the full functions list
import { sqrt, pow, sum, sin, round } from 'vue-chemistry/math'
import { toString, toLowerCase } from 'vue-chemistry/string'
import { parseInt, parseFloat } from 'vue-chemistry/number'
import { pow, round, sin, sqrt, sum } from 'vue-chemistry/math'
import { toLowerCase, toString } from 'vue-chemistry/string'
import { parseFloat, parseInt } from 'vue-chemistry/number'
import { parse, stringify } from 'vue-chemistry/json'
import { isFalsy } from 'vue-chemistry/boolean'
import { log } from 'vue-chemistry/console'
Expand All @@ -114,7 +115,7 @@ Math.sin(a)
Or to have everything in one place:

```js
import { sqrt, parseInt, parse, log } from 'vue-chemistry'
import { log, parse, parseInt, sqrt } from 'vue-chemistry'
```


Expand All @@ -123,7 +124,7 @@ import { sqrt, parseInt, parse, log } from 'vue-chemistry'
```js
import { set } from 'vue-chemistry/core'
import { log } from 'vue-chemistry/console'
import { sqrt, pow, sum } from 'vue-chemistry/math'
import { pow, sqrt, sum } from 'vue-chemistry/math'

// Math _________
// c = √ a² + b²
Expand All @@ -138,12 +139,12 @@ log(c) // 13
```

```ts
import { stringify, parse } from 'vue-chemistry/json'
import { parse, stringify } from 'vue-chemistry/json'
import { log } from 'vue-chemistry/console'

// JSON
//
const obj = ref({ foo:'bar' })
const obj = ref({ foo: 'bar' })
const str = stringify(obj)
const clone = parse(str)

Expand Down Expand Up @@ -178,7 +179,7 @@ import { dec, multiply } from 'vue-chemistry/match'
const x = ref(9)
const y = ref(9)
const z = ref(7)
const equation = rs`${x} x ${y} + ${z} = ${sum(multiply(x, y),z)}`
const equation = rs`${x} x ${y} + ${z} = ${sum(multiply(x, y), z)}`
log(equation) // 9 x 9 + 7 = 88
set(x, 98)
dec(z)
Expand All @@ -189,7 +190,7 @@ log(equation) // 987 x 9 + 5 = 8888
```

```ts
import { set, is, ternary, rs, log } from 'vue-chemistry'
import { is, log, rs, set, ternary } from 'vue-chemistry'

// String 3
//
Expand Down
12 changes: 0 additions & 12 deletions jest.config.js

This file was deleted.

82 changes: 40 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,78 +1,76 @@
{
"name": "vue-chemistry",
"version": "0.2.2",
"packageManager": "[email protected]",
"description": "Reactive JavaScript utilities",
"author": "Anthony Fu <[email protected]>",
"license": "MIT",
"sideEffects": false,
"types": "./index.d.ts",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/vue-chemistry#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/vue-chemistry.git"
},
"bugs": {
"url": "https://github.com/vue-chemistry/issues"
},
"sideEffects": false,
"exports": {
".": {
"import": "./esm/index.js",
"require": "./cjs/index.js"
"require": "./cjs/index.js",
"import": "./esm/index.js"
},
"./core": {
"import": "./esm/core.js",
"require": "./cjs/core.js"
"require": "./cjs/core.js",
"import": "./esm/core.js"
},
"./json": {
"import": "./esm/json/index.js",
"require": "./cjs/json/index.js"
"require": "./cjs/json/index.js",
"import": "./esm/json/index.js"
},
"./string": {
"import": "./esm/string/index.js",
"require": "./cjs/string/index.js"
"require": "./cjs/string/index.js",
"import": "./esm/string/index.js"
},
"./math": {
"import": "./esm/math/index.js",
"require": "./cjs/math/index.js"
"require": "./cjs/math/index.js",
"import": "./esm/math/index.js"
},
"./number": {
"import": "./esm/number/index.js",
"require": "./cjs/number/index.js"
"require": "./cjs/number/index.js",
"import": "./esm/number/index.js"
},
"./boolean": {
"import": "./esm/boolean/index.js",
"require": "./cjs/boolean/index.js"
"require": "./cjs/boolean/index.js",
"import": "./esm/boolean/index.js"
},
"./console": {
"import": "./esm/console/index.js",
"require": "./cjs/console/index.js"
"require": "./cjs/console/index.js",
"import": "./esm/console/index.js"
}
},
"bugs": {
"url": "https://github.com/vue-chemistry/issues"
},
"homepage": "https://github.com/vue-chemistry#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/vue-chemistry.git"
},
"types": "./index.d.ts",
"scripts": {
"build": "esno scripts/build.ts",
"release": "npx bumpp --commit --push --tag && npm run build && cd dist && npm publish --access public",
"lint": "eslint \"**/*.ts\"",
"test": "jest"
"lint": "eslint .",
"test": "vitest"
},
"dependencies": {
"@vueuse/shared": "^4.0.4",
"@vueuse/shared": "^9.3.0",
"vue-demi": "latest"
},
"devDependencies": {
"@antfu/eslint-config-ts": "^0.4.3",
"@types/fs-extra": "^9.0.6",
"@types/jest": "^26.0.20",
"@types/node": "^14.14.20",
"eslint": "^7.17.0",
"eslint-plugin-jest": "^24.1.3",
"esno": "^0.4.0",
"fast-glob": "^3.2.4",
"fs-extra": "^9.0.1",
"jest": "^26.6.3",
"@antfu/eslint-config": "^0.27.0",
"@types/fs-extra": "^9.0.13",
"@types/node": "^18.11.0",
"eslint": "^8.25.0",
"esno": "^0.16.3",
"fast-glob": "^3.2.12",
"fs-extra": "^10.1.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.4.4",
"typescript": "^4.1.3",
"vue": "^3.0.5"
"typescript": "^4.8.4",
"vitest": "^0.24.3",
"vue": "^3.2.41"
}
}
Loading

0 comments on commit ce8281e

Please sign in to comment.