@metamask/superstruct
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -10,2 +10,12 @@ # Changelog | ||
## [3.0.0] | ||
### Added | ||
- Newly exports the following types: `AnyStruct`, `EnumSchema`, `InferStructTuple`, `IsExactMatch`, `IsMatch`, `IsRecord`, `IsTuple`, `ObjectSchema`, `OmitBy`, `Optionalize`, `PickBy`, `Simplify`, `UnionToIntersection` ([#18](https://github.com/MetaMask/superstruct/pull/18)). | ||
### Fixed | ||
- **BREAKING:** Expose separate build entry points and type declarations for CommonJS and ESM via package manifest `exports`. ([#18](https://github.com/MetaMask/superstruct/pull/18)) | ||
## [2.0.0] | ||
@@ -617,3 +627,4 @@ | ||
[Unreleased]: https://github.com/MetaMask/superstruct/compare/v2.0.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/superstruct/compare/v3.0.0...HEAD | ||
[3.0.0]: https://github.com/MetaMask/superstruct/compare/v2.0.0...v3.0.0 | ||
[2.0.0]: https://github.com/MetaMask/superstruct/compare/v1.0.0...v2.0.0 | ||
@@ -620,0 +631,0 @@ [1.0.0]: https://github.com/MetaMask/superstruct/compare/v0.16.0...v1.0.0 |
{ | ||
"name": "@metamask/superstruct", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "A simple and composable way to validate data in JavaScript (and TypeScript).", | ||
@@ -48,11 +48,16 @@ "keywords": [ | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js", | ||
"types": "./dist/types/index.d.ts" | ||
"import": { | ||
"types": "./dist/index.d.mts", | ||
"default": "./dist/index.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/index.d.cts", | ||
"default": "./dist/index.cjs" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "./dist/index.js", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/types/index.d.ts", | ||
"types": "./dist/index.d.cts", | ||
"files": [ | ||
@@ -62,5 +67,4 @@ "dist" | ||
"scripts": { | ||
"build": "tsup --clean && yarn build:types", | ||
"build": "ts-bridge --project tsconfig.build.json --clean", | ||
"build:docs": "typedoc", | ||
"build:types": "tsc --project tsconfig.build.json", | ||
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog", | ||
@@ -83,5 +87,6 @@ "lint:changelog": "auto-changelog validate --prettier", | ||
"@metamask/eslint-config-typescript": "^12.1.0", | ||
"@ts-bridge/cli": "^0.1.2", | ||
"@ts-bridge/shims": "^0.1.1", | ||
"@types/expect": "^24.3.0", | ||
"@types/lodash": "^4.14.144", | ||
"@types/lodash-es": "^4.17.12", | ||
"@types/node": "^18.7.14", | ||
@@ -103,6 +108,5 @@ "@typescript-eslint/eslint-plugin": "^5.43.0", | ||
"jest": "^29.7.0", | ||
"lodash-es": "^4.17.21", | ||
"lodash": "^4.17.21", | ||
"prettier": "^2.7.1", | ||
"prettier-plugin-packagejson": "^2.3.0", | ||
"tsup": "patch:tsup@npm%3A8.0.2#~/.yarn/patches/tsup-npm-8.0.2-86e40f68a7.patch", | ||
"typedoc": "^0.25.9", | ||
@@ -122,6 +126,5 @@ "typescript": "~4.8.4", | ||
"allowScripts": { | ||
"vitest>vite>esbuild": true, | ||
"tsup>esbuild": true | ||
"vitest>vite>esbuild": true | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
436356
68
2675
1