Skip to content

Commit

Permalink
perf: replace fast-deep-equal with dequal (#3)
Browse files Browse the repository at this point in the history
* perf: use dequal

* add precommit

* remove fast-deep-equal

* add standard ci
  • Loading branch information
gurgunday authored Jun 24, 2024
1 parent 3bbbc07 commit fdd4335
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 36 deletions.
24 changes: 24 additions & 0 deletions .github/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
push:
branches:
- main
- master
- next
- 'v*'
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'

jobs:
test:
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.2.0
with:
license-check: true
lint: true
node-versions: '["18", "20"]'
32 changes: 0 additions & 32 deletions .github/test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const deepEqual = require('fast-deep-equal')
const { dequal: deepEqual } = require('dequal')
const resolvers = require('./lib/resolvers')
const errors = require('./lib/errors')

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"scripts": {
"lint": "standard",
"lint:fix": "standard --fix",
"test": "npm run test:unit && npm run test:types",
"test:unit": "c8 --100 node --test",
"test:types": "tsd",
"test": "npm run lint && npm run test:unit && npm run test:types"
"test:types": "tsd"
},
"repository": {
"type": "git",
Expand All @@ -29,11 +29,12 @@
},
"homepage": "https://github.com/fastify/merge-json-schemas#readme",
"devDependencies": {
"@fastify/pre-commit": "^2.1.0",
"c8": "^8.0.1",
"standard": "^17.1.0",
"tsd": "^0.30.3"
},
"dependencies": {
"fast-deep-equal": "^3.1.3"
"dequal": "^2.0.3"
}
}

0 comments on commit fdd4335

Please sign in to comment.