Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: unjs/ohash
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5d8e62449fab44328f18e103f36db53cabebf63a
Choose a base ref
..
head repository: unjs/ohash
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1235a374ae260139ed3de1dc8233d080ee59a814
Choose a head ref
Showing with 1,382 additions and 1,031 deletions.
  1. +1 −1 .github/workflows/autofix.yml
  2. +2 −2 .github/workflows/ci.yml
  3. +5 −5 package.json
  4. +1,224 −853 pnpm-lock.yaml
  5. +3 −3 src/crypto/sha256.ts
  6. +1 −1 src/{utils → }/diff.ts
  7. +2 −2 src/{hash → }/hash.ts
  8. +4 −9 src/index.ts
  9. +2 −2 src/{hash → }/object-hash.ts
  10. +1 −1 src/{utils/is-equal.ts → utils.ts}
  11. +131 −49 test/index.test.ts
  12. +0 −40 test/ohash.test.ts
  13. +0 −51 test/utils.test.ts
  14. +6 −12 tsconfig.json
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -21,6 +21,6 @@ jobs:
- run: pnpm install
- name: Fix lint issues
run: pnpm run lint:fix
- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
with:
commit-message: "chore: apply automated updates"
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ jobs:
cache: "pnpm"
- run: pnpm install
- run: pnpm lint
- run: pnpm test:types
- run: pnpm typecheck
- run: pnpm build
- run: pnpm vitest --coverage
- uses: codecov/codecov-action@v5
- uses: codecov/codecov-action@v4
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -27,20 +27,20 @@
"prepack": "unbuild",
"release": "pnpm test && changelogen --release --push && pnpm publish",
"benchmark": "node benchmark/object-hash.mjs",
"test": "pnpm lint && vitest run && pnpm test:types",
"test:types": "tsc --noEmit"
"test": "pnpm lint && vitest run && pnpm typecheck",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@types/node": "^22.10.6",
"@types/node": "^22.10.5",
"@vitest/coverage-v8": "^2.1.8",
"benchmark": "^2.1.4",
"changelogen": "^0.5.7",
"eslint": "^9.18.0",
"eslint-config-unjs": "^0.4.2",
"prettier": "^3.4.2",
"typescript": "^5.7.3",
"unbuild": "^3.3.1",
"unbuild": "^2.0.0",
"vitest": "^2.1.8"
},
"packageManager": "pnpm@9.15.4"
"packageManager": "pnpm@9.15.3"
}
Loading