Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also 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: sindresorhus/read-pkg
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.0.0
Choose a base ref
...
head repository: sindresorhus/read-pkg
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.1.0
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Apr 7, 2023

  1. Fix readme

    sindresorhus committed Apr 7, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    797f103 View commit details

Commits on Aug 22, 2023

  1. Update dependencies

    Fixes #31
    sindresorhus committed Aug 22, 2023
    Copy the full SHA
    c0cd420 View commit details
  2. 8.1.0

    sindresorhus committed Aug 22, 2023
    Copy the full SHA
    9ac0a0f View commit details
Showing with 6 additions and 7 deletions.
  1. +0 −1 index.d.ts
  2. +5 −5 package.json
  3. +1 −1 readme.md
1 change: 0 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-redundant-type-constituents */
import type {PackageJson as typeFestPackageJson} from 'type-fest';
import type {Package as normalizePackage} from 'normalize-package-data';

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "read-pkg",
"version": "8.0.0",
"version": "8.1.0",
"description": "Read a package.json file",
"license": "MIT",
"repository": "sindresorhus/read-pkg",
@@ -35,13 +35,13 @@
],
"dependencies": {
"@types/normalize-package-data": "^2.4.1",
"normalize-package-data": "^5.0.0",
"normalize-package-data": "^6.0.0",
"parse-json": "^7.0.0",
"type-fest": "^3.8.0"
"type-fest": "^4.2.0"
},
"devDependencies": {
"ava": "^5.2.0",
"ava": "^5.3.1",
"tsd": "^0.28.1",
"xo": "^0.54.0"
"xo": "^0.56.0"
}
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ Note: `packageFile` is cloned using [`structuredClone`](https://developer.mozill

#### packageFile

Type: `object | string`\
Type: `object | string`

An object or a stringified object to be parsed as a package.json.