Comparing version 2.1.2 to 3.0.0
104
package.json
{ | ||
"name": "mendoza", | ||
"version": "2.1.2", | ||
"version": "3.0.0", | ||
"description": "Mendoza, differ for structured documents", | ||
"main": "./lib/cjs/index.js", | ||
"module": "./lib/esm/index.js", | ||
"types": "./lib/esm/index.d.ts", | ||
"keywords": [ | ||
"mendoza", | ||
"diff" | ||
], | ||
"homepage": "https://www.sanity.io/", | ||
"bugs": { | ||
"url": "https://github.com/sanity-io/mendoza-js/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/sanity-io/mendoza-js.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Sanity.io <hello@sanity.io>", | ||
"sideEffects": false, | ||
"engines": { | ||
"node": ">=10" | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"source": "./src/index.ts", | ||
"require": "./dist/index.cjs", | ||
"default": "./dist/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"source": "./src/index.ts", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"dist", | ||
"src" | ||
], | ||
"scripts": { | ||
"prebuild": "npm run clean", | ||
"build": "npm run build:esm && npm run build:cjs", | ||
"build:esm": "tsc --module es6 --outDir lib/esm", | ||
"build": "npm run clean && pkg build --strict && pkg --strict", | ||
"clean": "npx rimraf dist coverage", | ||
"coverage": "vitest run --coverage", | ||
"lint": "echo todo", | ||
"coverage": "npm test", | ||
"build:cjs": "tsc --module commonjs --outDir lib/cjs", | ||
"prepublishOnly": "npm run build", | ||
"clean": "rimraf lib", | ||
"type-check": "tsc --noEmit", | ||
"test": "jest --coverage" | ||
"test": "vitest", | ||
"type-check": "tsc --noEmit" | ||
}, | ||
"browserslist": [ | ||
"> 0.2% and supports es6-module and supports es6-module-dynamic-import and not dead and not IE 11", | ||
"maintained node versions" | ||
], | ||
"prettier": { | ||
"bracketSpacing": false, | ||
"plugins": [ | ||
"prettier-plugin-packagejson" | ||
], | ||
"printWidth": 100, | ||
"semi": false, | ||
"singleQuote": true | ||
}, | ||
"devDependencies": { | ||
"@sanity/pkg-utils": "^2.3.10", | ||
"@sanity/semantic-release-preset": "^4.1.2", | ||
"@types/jest": "^26.0.15", | ||
"jest": "^26.6.1", | ||
"@types/node": "^18.17.2", | ||
"@typescript-eslint/eslint-plugin": "^6.2.1", | ||
"@typescript-eslint/parser": "^6.2.1", | ||
"@vitest/coverage-v8": "^0.34.1", | ||
"eslint": "^8.46.0", | ||
"eslint-config-prettier": "^8.10.0", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"ls-engines": "^0.9.0", | ||
"prettier": "^2.0.0", | ||
"prettier": "^3.0.1", | ||
"prettier-plugin-packagejson": "^2.4.5", | ||
"rimraf": "^3.0.2", | ||
"semantic-release": "^21.0.7", | ||
"ts-jest": "^26.4.1", | ||
"ts-node": "^8.6.2", | ||
"tslib": "^2.6.1", | ||
"typescript": "^4.0.0" | ||
"typescript": "^5.1.6", | ||
"vitest": "^0.34.1", | ||
"vitest-github-actions-reporter": "^0.10.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/sanity-io/mendoza-js.git" | ||
"engines": { | ||
"node": ">=14.18" | ||
}, | ||
"keywords": [ | ||
"mendoza", | ||
"diff" | ||
], | ||
"author": "Sanity.io <hello@sanity.io>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/sanity-io/mendoza-js/issues" | ||
}, | ||
"homepage": "https://www.sanity.io/", | ||
"prettier": { | ||
"semi": false, | ||
"printWidth": 100, | ||
"bracketSpacing": false, | ||
"singleQuote": true | ||
}, | ||
"publishConfig": { | ||
@@ -62,0 +84,0 @@ "access": "public", |
# mendoza-js | ||
[![npm version](https://img.shields.io/npm/v/mendoza.svg?style=flat-square)](https://www.npmjs.com/package/mendoza)[![Build Status](https://img.shields.io/travis/sanity-io/mendoza-js/main.svg?style=flat-square)](https://travis-ci.org/sanity-io/mendoza-js)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/mendoza?style=flat-square)](https://bundlephobia.com/result?p=mendoza) | ||
[![npm stat](https://img.shields.io/npm/dm/mendoza.svg?style=flat-square)](https://npm-stat.com/charts.html?package=mendoza) | ||
[![npm version](https://img.shields.io/npm/v/mendoza.svg?style=flat-square)](https://www.npmjs.com/package/mendoza) | ||
[![gzip size][gzip-badge]][bundlephobia] | ||
[![size][size-badge]][bundlephobia] | ||
@@ -76,1 +79,12 @@ [Mendoza](https://github.com/sanity-io/mendoza) decoder in TypeScript. | ||
MIT © [Sanity.io](https://www.sanity.io/) | ||
## Release new version | ||
Run the ["CI & Release" workflow](https://github.com/sanity-io/mendoza-js/actions). | ||
Make sure to select the main branch and check "Release new version". | ||
Semantic release will only release on configured branches, so it is safe to run release on any branch. | ||
[gzip-badge]: https://img.shields.io/bundlephobia/minzip/mendoza?label=gzip%20size&style=flat-square | ||
[size-badge]: https://img.shields.io/bundlephobia/min/mendoza?label=size&style=flat-square | ||
[bundlephobia]: https://bundlephobia.com/package/mendoza |
@@ -76,3 +76,3 @@ import {ObjectModel} from './object-model' | ||
let elements = (value.data as unknown[]).map((item) => | ||
this.wrapWithMeta(item, value.startMeta) | ||
this.wrapWithMeta(item, value.startMeta), | ||
) | ||
@@ -79,0 +79,0 @@ let metas = elements.map(() => this.meta) |
@@ -1,3 +0,4 @@ | ||
export * as incremental from './incremental-patcher' | ||
export {RawPatch, RawOperation} from './patch' | ||
import * as incremental from './incremental-patcher' | ||
export {incremental} | ||
export {applyPatch} from './simple-patcher' | ||
export type * from './patch' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
167060
90
Yes
18
15
2256