Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mendoza

Package Overview
Dependencies
Maintainers
37
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mendoza - npm Package Compare versions

Comparing version 2.1.2 to 3.0.0

dist/index.cjs

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'
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc