diff --git a/CHANGELOG.md b/CHANGELOG.md index 3aee3252..8fe524a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,940 +9,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [2.0.0] -### Uncategorized - -- Update metadata in package.json ([#12](https://github.com/MetaMask/superstruct/pull/12)) -- Revert "2.0.0 (#9)" ([#9](https://github.com/MetaMask/superstruct/pull/9)) -- Update security code scanner file ([#10](https://github.com/MetaMask/superstruct/pull/10)) -- 2.0.0 ([#9](https://github.com/MetaMask/superstruct/pull/9)) -- Format changelog ([#8](https://github.com/MetaMask/superstruct/pull/8)) -- Fix tests ([#7](https://github.com/MetaMask/superstruct/pull/7)) -- Update CI and related files to match module template ([#6](https://github.com/MetaMask/superstruct/pull/6)) -- Build package with `tsup` ([#5](https://github.com/MetaMask/superstruct/pull/5)) -- Update lint configs ([#4](https://github.com/MetaMask/superstruct/pull/4)) -- Add Yarn and lockfile ([#3](https://github.com/MetaMask/superstruct/pull/3)) -- Enabling MetaMask security code scanner ([#2](https://github.com/MetaMask/superstruct/pull/2)) -- Fix ESM/CJS compatibility ([#1](https://github.com/MetaMask/superstruct/pull/1)) -- Add notice to README -- Change package name to @metamask/superstruct -- make more of the examples runnable ([#1165](https://github.com/MetaMask/superstruct/pull/1165)) -- Retain struct's type in partial and pick helpers ([#1149](https://github.com/MetaMask/superstruct/pull/1149)) -- Document the usage of the type struct in the omit utility ([#1150](https://github.com/MetaMask/superstruct/pull/1150)) -- Fix documentation error ([#1197](https://github.com/MetaMask/superstruct/pull/1197)) -- update demo link and screenshot -- 1.0.3 -- fix ./lib to ./dist -- 1.0.2 -- fix cjs bundle to be umd-compatible -- 1.0.1 -- more fixes -- fix package.json import locations, fixes #1147 -- 1.0.0 -- update dependencies -- update changelog -- switch to npm, cleanup rollup, remove umd ([#1146](https://github.com/MetaMask/superstruct/pull/1146)) -- Bump @types/mocha from 9.1.1 to 10.0.0 ([#1119](https://github.com/MetaMask/superstruct/pull/1119)) -- Allow optional and nullable enums ([#1114](https://github.com/MetaMask/superstruct/pull/1114)) -- Bump eslint-plugin-prettier from 4.0.0 to 4.2.1 ([#1072](https://github.com/MetaMask/superstruct/pull/1072)) -- Bump @babel/cli from 7.17.10 to 7.19.3 ([#1116](https://github.com/MetaMask/superstruct/pull/1116)) -- Bump @babel/plugin-transform-modules-commonjs from 7.18.6 to 7.19.6 ([#1130](https://github.com/MetaMask/superstruct/pull/1130)) -- Bump @types/node from 18.7.14 to 18.11.8 ([#1133](https://github.com/MetaMask/superstruct/pull/1133)) -- Deeply coerce within unions ([#1138](https://github.com/MetaMask/superstruct/pull/1138)) -- Add custom error messages (#568) ([#568](https://github.com/MetaMask/superstruct/pull/568)) -- v0.16.7 -- Fix Symbol serialisation ([#1135](https://github.com/MetaMask/superstruct/pull/1135)) -- Fix typo in 04-refining-validation.md ([#1128](https://github.com/MetaMask/superstruct/pull/1128)) -- v0.16.6 -- Allow coercions to undefined ([#1126](https://github.com/MetaMask/superstruct/pull/1126)) -- v0.16.5 -- Document custom error messages for refinements ([#1113](https://github.com/MetaMask/superstruct/pull/1113)) -- Support Node 14 (again) ([#1112](https://github.com/MetaMask/superstruct/pull/1112)) -- v0.16.4 -- fix enums with readonly schemas -- Bump @babel/preset-env from 7.18.2 to 7.19.1 ([#1110](https://github.com/MetaMask/superstruct/pull/1110)) -- v0.16.3 -- fix enums type inference, closes #1018 -- Bump @babel/plugin-transform-modules-commonjs from 7.18.2 to 7.18.6 ([#1075](https://github.com/MetaMask/superstruct/pull/1075)) -- Bump @babel/register from 7.15.3 to 7.18.9 ([#1094](https://github.com/MetaMask/superstruct/pull/1094)) -- v0.16.2 -- update build clear script -- Merge branch 'main' of github.com:ianstormtaylor/superstruct -- revert build system changes -- Bump prettier from 2.6.2 to 2.7.1 ([#1079](https://github.com/MetaMask/superstruct/pull/1079)) -- v0.16.1 -- Bump @babel/preset-typescript from 7.17.12 to 7.18.6 ([#1073](https://github.com/MetaMask/superstruct/pull/1073)) -- Bump rollup-plugin-ts from 3.0.1 to 3.0.2 ([#1077](https://github.com/MetaMask/superstruct/pull/1077)) -- Rename CommonJS bundle so as to be compatible with React Native ([#1086](https://github.com/MetaMask/superstruct/pull/1086)) -- Stop coercing empty optional fields to undefined values ([#1106](https://github.com/MetaMask/superstruct/pull/1106)) -- Bump @types/lodash from 4.14.182 to 4.14.185 ([#1109](https://github.com/MetaMask/superstruct/pull/1109)) -- Bump @babel/core from 7.18.2 to 7.19.1 ([#1108](https://github.com/MetaMask/superstruct/pull/1108)) -- Bump np from 7.6.1 to 7.6.2 ([#1076](https://github.com/MetaMask/superstruct/pull/1076)) -- fix coercion example in README ([#1105](https://github.com/MetaMask/superstruct/pull/1105)) -- Bump @types/node from 17.0.38 to 18.7.14 ([#1101](https://github.com/MetaMask/superstruct/pull/1101)) -- Bump rollup from 2.75.5 to 2.79.0 ([#1098](https://github.com/MetaMask/superstruct/pull/1098)) -- Bump terser from 5.3.8 to 5.14.2 ([#1087](https://github.com/MetaMask/superstruct/pull/1087)) -- Fixup a typo in `create` code signature in the docs ([#1071](https://github.com/MetaMask/superstruct/pull/1071)) -- Add documentation for mask ([#1070](https://github.com/MetaMask/superstruct/pull/1070)) -- v0.16.0 -- update changelog -- Run refiners as long as validators passed ([#1068](https://github.com/MetaMask/superstruct/pull/1068)) -- v0.15.5 -- Clarify documentation around optional and strictNullChecks -- Bump typescript from 4.6.2 to 4.7.2 ([#1060](https://github.com/MetaMask/superstruct/pull/1060)) -- Bump mocha from 9.2.1 to 10.0.0 ([#1047](https://github.com/MetaMask/superstruct/pull/1047)) -- Bump rollup-plugin-ts from 2.0.5 to 3.0.1 ([#1065](https://github.com/MetaMask/superstruct/pull/1065)) -- Bump @babel/preset-typescript from 7.16.7 to 7.17.12 ([#1067](https://github.com/MetaMask/superstruct/pull/1067)) -- Bump @types/node from 17.0.21 to 17.0.38 ([#1066](https://github.com/MetaMask/superstruct/pull/1066)) -- update ci config -- update dependabot config -- Bump @babel/core from 7.17.5 to 7.18.2 ([#1061](https://github.com/MetaMask/superstruct/pull/1061)) -- Bump rollup from 2.58.0 to 2.75.5 ([#1062](https://github.com/MetaMask/superstruct/pull/1062)) -- Bump @babel/preset-env from 7.15.6 to 7.18.2 ([#1056](https://github.com/MetaMask/superstruct/pull/1056)) -- Bump @babel/cli from 7.17.6 to 7.17.10 ([#1064](https://github.com/MetaMask/superstruct/pull/1064)) -- Bump @types/lodash from 4.14.179 to 4.14.182 ([#1063](https://github.com/MetaMask/superstruct/pull/1063)) -- Bump eslint-plugin-import from 2.25.4 to 2.26.0 ([#1059](https://github.com/MetaMask/superstruct/pull/1059)) -- Fix minor typo on guide 04 ([#1051](https://github.com/MetaMask/superstruct/pull/1051)) -- Bump rollup from 2.58.0 to 2.75.3 ([#1058](https://github.com/MetaMask/superstruct/pull/1058)) -- Bump @babel/plugin-transform-modules-commonjs from 7.15.4 to 7.18.2 ([#1057](https://github.com/MetaMask/superstruct/pull/1057)) -- Bump @types/mocha from 9.0.0 to 9.1.1 ([#1044](https://github.com/MetaMask/superstruct/pull/1044)) -- Bump minimist from 1.2.5 to 1.2.6 ([#1040](https://github.com/MetaMask/superstruct/pull/1040)) -- Bump prettier from 2.5.1 to 2.6.2 ([#1039](https://github.com/MetaMask/superstruct/pull/1039)) -- Bump np from 7.5.0 to 7.6.1 ([#1036](https://github.com/MetaMask/superstruct/pull/1036)) -- Bump is-email from 1.0.1 to 1.0.2 ([#1021](https://github.com/MetaMask/superstruct/pull/1021)) -- v0.15.4 -- Bump @types/lodash from 4.14.175 to 4.14.179 ([#1014](https://github.com/MetaMask/superstruct/pull/1014)) -- fix prettier -- Bump @babel/core from 7.15.5 to 7.17.5 ([#1009](https://github.com/MetaMask/superstruct/pull/1009)) -- Use type for omit output if that's the struct's input ([#988](https://github.com/MetaMask/superstruct/pull/988)) -- Bump @types/node from 16.10.3 to 17.0.21 ([#1015](https://github.com/MetaMask/superstruct/pull/1015)) -- Bump @babel/preset-typescript from 7.15.0 to 7.16.7 ([#1017](https://github.com/MetaMask/superstruct/pull/1017)) -- Bump typescript from 4.4.3 to 4.6.2 ([#1016](https://github.com/MetaMask/superstruct/pull/1016)) -- Respect refiner in `dynamic` and `lazy` ([#966](https://github.com/MetaMask/superstruct/pull/966)) -- Bump eslint-plugin-import from 2.24.2 to 2.25.4 ([#991](https://github.com/MetaMask/superstruct/pull/991)) -- Bump rollup-plugin-ts from 1.4.1 to 2.0.5 ([#994](https://github.com/MetaMask/superstruct/pull/994)) -- Change `struct()` to `object()` in `object` docs ([#973](https://github.com/MetaMask/superstruct/pull/973)) -- Bump prettier from 2.4.0 to 2.5.1 ([#982](https://github.com/MetaMask/superstruct/pull/982)) -- Bump mocha from 9.1.1 to 9.2.1 ([#1007](https://github.com/MetaMask/superstruct/pull/1007)) -- Bump @babel/cli from 7.15.4 to 7.17.6 ([#1013](https://github.com/MetaMask/superstruct/pull/1013)) -- v0.15.3 -- fix lockfile -- fix publish config -- update np -- fix eslint differently to preserve testing authenticity -- fix to get eslint to be quiet? -- Improve inference for `intersection`, `tuple` and `union` structs ([#947](https://github.com/MetaMask/superstruct/pull/947)) -- Add `nonempty` refinement ([#946](https://github.com/MetaMask/superstruct/pull/946)) -- Add `bigint` support ([#945](https://github.com/MetaMask/superstruct/pull/945)) -- Correctly match boolean literal values ([#899](https://github.com/MetaMask/superstruct/pull/899)) -- Bump @typescript-eslint/eslint-plugin from 4.31.0 to 4.33.0 ([#957](https://github.com/MetaMask/superstruct/pull/957)) -- Bump @types/node from 16.9.1 to 16.10.3 ([#956](https://github.com/MetaMask/superstruct/pull/956)) -- Bump @typescript-eslint/parser from 4.31.0 to 4.33.0 ([#955](https://github.com/MetaMask/superstruct/pull/955)) -- Bump rollup from 2.56.3 to 2.58.0 ([#951](https://github.com/MetaMask/superstruct/pull/951)) -- Bump @types/lodash from 4.14.172 to 4.14.175 ([#950](https://github.com/MetaMask/superstruct/pull/950)) -- Bump eslint-plugin-prettier from 3.4.1 to 4.0.0 ([#928](https://github.com/MetaMask/superstruct/pull/928)) -- Bump @babel/preset-env from 7.15.4 to 7.15.6 ([#927](https://github.com/MetaMask/superstruct/pull/927)) -- Bump prettier from 2.3.2 to 2.4.0 ([#926](https://github.com/MetaMask/superstruct/pull/926)) -- Bump typescript from 4.4.2 to 4.4.3 ([#925](https://github.com/MetaMask/superstruct/pull/925)) -- Bump @types/node from 16.7.1 to 16.9.1 ([#924](https://github.com/MetaMask/superstruct/pull/924)) -- Bump @babel/plugin-transform-modules-commonjs from 7.15.0 to 7.15.4 ([#923](https://github.com/MetaMask/superstruct/pull/923)) -- Bump @babel/cli from 7.14.8 to 7.15.4 ([#918](https://github.com/MetaMask/superstruct/pull/918)) -- Bump eslint-plugin-import from 2.24.1 to 2.24.2 ([#920](https://github.com/MetaMask/superstruct/pull/920)) -- Bump mocha from 8.4.0 to 9.1.1 ([#917](https://github.com/MetaMask/superstruct/pull/917)) -- Bump eslint from 7.26.0 to 7.32.0 ([#882](https://github.com/MetaMask/superstruct/pull/882)) -- Bump @babel/preset-typescript from 7.13.0 to 7.15.0 ([#912](https://github.com/MetaMask/superstruct/pull/912)) -- Bump @typescript-eslint/eslint-plugin from 4.29.2 to 4.31.0 ([#919](https://github.com/MetaMask/superstruct/pull/919)) -- Bump is-email from 1.0.0 to 1.0.1 ([#921](https://github.com/MetaMask/superstruct/pull/921)) -- Bump eslint-plugin-prettier from 3.4.0 to 3.4.1 ([#922](https://github.com/MetaMask/superstruct/pull/922)) -- Bump @typescript-eslint/parser from 4.29.2 to 4.31.0 ([#916](https://github.com/MetaMask/superstruct/pull/916)) -- Bump typescript from 4.2.4 to 4.4.2 ([#910](https://github.com/MetaMask/superstruct/pull/910)) -- Bump @types/mocha from 8.2.2 to 9.0.0 ([#911](https://github.com/MetaMask/superstruct/pull/911)) -- Bump @babel/register from 7.13.16 to 7.15.3 ([#908](https://github.com/MetaMask/superstruct/pull/908)) -- Bump prettier from 2.3.0 to 2.3.2 ([#906](https://github.com/MetaMask/superstruct/pull/906)) -- Bump rollup-plugin-ts from 1.3.12 to 1.4.1 ([#915](https://github.com/MetaMask/superstruct/pull/915)) -- Fixed syntax error in refining validation example ([#849](https://github.com/MetaMask/superstruct/pull/849)) -- little docs correction ([#872](https://github.com/MetaMask/superstruct/pull/872)) -- Bump glob-parent from 5.1.1 to 5.1.2 ([#905](https://github.com/MetaMask/superstruct/pull/905)) -- Bump trim-newlines from 3.0.0 to 3.0.1 ([#827](https://github.com/MetaMask/superstruct/pull/827)) -- Bump normalize-url from 4.5.0 to 4.5.1 ([#828](https://github.com/MetaMask/superstruct/pull/828)) -- Bump @babel/cli from 7.13.16 to 7.14.8 ([#873](https://github.com/MetaMask/superstruct/pull/873)) -- Bump @types/lodash from 4.14.169 to 4.14.172 ([#886](https://github.com/MetaMask/superstruct/pull/886)) -- Bump @babel/preset-env from 7.14.2 to 7.15.0 ([#888](https://github.com/MetaMask/superstruct/pull/888)) -- Bump path-parse from 1.0.6 to 1.0.7 ([#892](https://github.com/MetaMask/superstruct/pull/892)) -- Bump @typescript-eslint/eslint-plugin from 4.23.0 to 4.29.2 ([#900](https://github.com/MetaMask/superstruct/pull/900)) -- Bump rollup from 2.48.0 to 2.56.3 ([#901](https://github.com/MetaMask/superstruct/pull/901)) -- Bump eslint-plugin-import from 2.23.2 to 2.24.1 ([#902](https://github.com/MetaMask/superstruct/pull/902)) -- Bump @types/node from 15.3.0 to 16.7.1 ([#904](https://github.com/MetaMask/superstruct/pull/904)) -- Bump @typescript-eslint/parser from 4.23.0 to 4.29.2 ([#903](https://github.com/MetaMask/superstruct/pull/903)) -- Bump @babel/core from 7.14.0 to 7.14.3 ([#801](https://github.com/MetaMask/superstruct/pull/801)) -- Bump @typescript-eslint/eslint-plugin from 4.22.1 to 4.23.0 ([#800](https://github.com/MetaMask/superstruct/pull/800)) -- Bump eslint-plugin-import from 2.22.1 to 2.23.2 ([#799](https://github.com/MetaMask/superstruct/pull/799)) -- Bump @typescript-eslint/parser from 4.22.1 to 4.23.0 ([#797](https://github.com/MetaMask/superstruct/pull/797)) -- Bump rollup from 2.47.0 to 2.48.0 ([#796](https://github.com/MetaMask/superstruct/pull/796)) -- Bump @types/node from 15.0.2 to 15.3.0 ([#795](https://github.com/MetaMask/superstruct/pull/795)) -- Bump @babel/preset-env from 7.14.1 to 7.14.2 ([#794](https://github.com/MetaMask/superstruct/pull/794)) -- Bump @types/lodash from 4.14.168 to 4.14.169 ([#793](https://github.com/MetaMask/superstruct/pull/793)) -- Bump hosted-git-info from 2.4.2 to 2.8.9 ([#785](https://github.com/MetaMask/superstruct/pull/785)) -- Bump prettier from 2.2.1 to 2.3.0 ([#786](https://github.com/MetaMask/superstruct/pull/786)) -- Bump eslint from 7.25.0 to 7.26.0 ([#788](https://github.com/MetaMask/superstruct/pull/788)) -- Bump mocha from 8.3.2 to 8.4.0 ([#789](https://github.com/MetaMask/superstruct/pull/789)) -- v0.15.2 -- allows optional enums ([#694](https://github.com/MetaMask/superstruct/pull/694)) -- types.md: Explain how to set the Typescript type when using define() ([#771](https://github.com/MetaMask/superstruct/pull/771)) -- Bump @typescript-eslint/parser from 4.22.0 to 4.22.1 ([#779](https://github.com/MetaMask/superstruct/pull/779)) -- Bump rollup from 2.46.0 to 2.47.0 ([#780](https://github.com/MetaMask/superstruct/pull/780)) -- Bump @typescript-eslint/eslint-plugin from 4.22.0 to 4.22.1 ([#781](https://github.com/MetaMask/superstruct/pull/781)) -- Bump @babel/preset-env from 7.14.0 to 7.14.1 ([#782](https://github.com/MetaMask/superstruct/pull/782)) -- Bump @types/node from 15.0.1 to 15.0.2 ([#783](https://github.com/MetaMask/superstruct/pull/783)) -- Upgrade to GitHub-native Dependabot ([#773](https://github.com/MetaMask/superstruct/pull/773)) -- Bump @types/node from 14.14.41 to 15.0.1 ([#774](https://github.com/MetaMask/superstruct/pull/774)) -- Bump @babel/core from 7.13.16 to 7.14.0 -- Bump rollup from 2.45.2 to 2.46.0 -- Bump @babel/preset-env from 7.13.15 to 7.14.0 -- Bump eslint from 7.24.0 to 7.25.0 -- Bump np from 7.4.0 to 7.5.0 -- Bump @babel/core from 7.13.15 to 7.13.16 -- Bump @babel/register from 7.13.14 to 7.13.16 -- Bump @babel/cli from 7.13.14 to 7.13.16 -- Bump eslint-plugin-prettier from 3.3.1 to 3.4.0 -- Bump @typescript-eslint/eslint-plugin from 4.21.0 to 4.22.0 -- Bump rollup from 2.45.1 to 2.45.2 -- Bump @types/node from 14.14.37 to 14.14.41 -- Bump @typescript-eslint/parser from 4.20.0 to 4.22.0 -- Bump rollup-plugin-ts from 1.3.10 to 1.3.12 -- Bump @babel/core from 7.13.14 to 7.13.15 -- Bump @babel/preset-env from 7.13.12 to 7.13.15 -- Bump @typescript-eslint/eslint-plugin from 4.20.0 to 4.21.0 -- Bump eslint from 7.23.0 to 7.24.0 -- Bump typescript from 4.2.3 to 4.2.4 -- Bump rollup from 2.44.0 to 2.45.1 -- fix expected output value ([#744](https://github.com/MetaMask/superstruct/pull/744)) -- Bump @babel/register from 7.13.8 to 7.13.14 -- Bump @babel/cli from 7.13.10 to 7.13.14 -- Bump @babel/core from 7.13.13 to 7.13.14 -- Bump rollup from 2.43.1 to 2.44.0 -- Bump @typescript-eslint/parser from 4.19.0 to 4.20.0 -- Bump @typescript-eslint/eslint-plugin from 4.19.0 to 4.20.0 -- Bump @typescript-eslint/parser from 4.18.0 to 4.19.0 -- Bump @babel/preset-env from 7.13.10 to 7.13.12 -- Bump @typescript-eslint/eslint-plugin from 4.18.0 to 4.19.0 -- Bump eslint from 7.22.0 to 7.23.0 -- Bump rollup from 2.42.2 to 2.43.1 -- Bump @babel/core from 7.13.10 to 7.13.13 -- Bump @types/node from 14.14.35 to 14.14.37 -- v0.15.1 -- fix max refinement error message -- v0.15.0 -- update changelog -- feat(union): add support for coercion of union types ([#723](https://github.com/MetaMask/superstruct/pull/723)) -- feat(assign): return type struct when assigning to type struct ([#721](https://github.com/MetaMask/superstruct/pull/721)) -- trigger docs rebuiled -- Bump rollup-plugin-ts from 1.3.7 to 1.3.10 -- Bump @types/node from 14.14.34 to 14.14.35 -- Bump rollup from 2.41.2 to 2.42.2 -- Bump @typescript-eslint/parser from 4.17.0 to 4.18.0 -- Bump @typescript-eslint/eslint-plugin from 4.17.0 to 4.18.0 -- Bump @types/mocha from 8.2.1 to 8.2.2 -- Update Readme.md -- Bump @babel/cli from 7.13.0 to 7.13.10 -- Bump @babel/core from 7.13.8 to 7.13.10 -- Bump mocha from 8.3.1 to 8.3.2 -- Bump rollup from 2.40.0 to 2.41.2 -- Bump eslint from 7.21.0 to 7.22.0 -- Bump @babel/preset-env from 7.13.9 to 7.13.10 -- Bump @types/node from 14.14.32 to 14.14.34 -- Bump @typescript-eslint/eslint-plugin from 4.16.1 to 4.17.0 -- Bump @typescript-eslint/parser from 4.16.1 to 4.17.0 -- Bump @typescript-eslint/parser from 4.16.0 to 4.16.1 -- Bump @typescript-eslint/eslint-plugin from 4.16.0 to 4.16.1 -- Bump @types/node from 14.14.31 to 14.14.32 -- Bump mocha from 8.3.0 to 8.3.1 -- Bump @babel/preset-env from 7.13.8 to 7.13.9 -- Bump typescript from 4.2.2 to 4.2.3 -- docs(refinements): `below` -> `max` ([#692](https://github.com/MetaMask/superstruct/pull/692)) -- Readme: `struct` => `define` in usage example ([#691](https://github.com/MetaMask/superstruct/pull/691)) -- Bump typescript from 4.1.5 to 4.2.2 -- Bump @typescript-eslint/eslint-plugin from 4.15.1 to 4.16.0 -- Bump @typescript-eslint/parser from 4.15.1 to 4.16.0 -- Bump @babel/core from 7.12.17 to 7.13.8 -- Bump rollup from 2.39.0 to 2.40.0 -- Bump eslint from 7.20.0 to 7.21.0 -- Bump @babel/cli from 7.12.17 to 7.13.0 -- Bump @babel/register from 7.12.13 to 7.13.8 -- Bump @babel/preset-typescript from 7.12.17 to 7.13.0 -- Bump @babel/preset-env from 7.12.17 to 7.13.8 -- Bump @types/node from 14.14.28 to 14.14.31 -- Bump @babel/preset-typescript from 7.12.16 to 7.12.17 -- Bump @babel/core from 7.12.16 to 7.12.17 -- Bump @babel/preset-env from 7.12.16 to 7.12.17 -- Bump @babel/cli from 7.12.16 to 7.12.17 -- Bump @typescript-eslint/eslint-plugin from 4.15.0 to 4.15.1 -- Bump @typescript-eslint/parser from 4.15.0 to 4.15.1 -- Bump @types/mocha from 8.2.0 to 8.2.1 -- Bump lodash from 4.17.20 to 4.17.21 -- Bump np from 7.3.0 to 7.4.0 -- Bump eslint from 7.19.0 to 7.20.0 -- Bump typescript from 4.1.3 to 4.1.5 -- Bump @babel/preset-env from 7.12.13 to 7.12.16 -- Bump @babel/preset-typescript from 7.12.13 to 7.12.16 -- Bump mocha from 8.2.1 to 8.3.0 -- Bump @typescript-eslint/parser from 4.14.2 to 4.15.0 -- Bump @typescript-eslint/eslint-plugin from 4.14.2 to 4.15.0 -- Bump @types/node from 14.14.25 to 14.14.28 -- Bump @babel/cli from 7.12.13 to 7.12.16 -- Bump rollup from 2.38.5 to 2.39.0 -- Bump @babel/core from 7.12.13 to 7.12.16 -- v0.14.2 -- switch literals schema to be literal values -- fix: fixed describe for union and literal types ([#639](https://github.com/MetaMask/superstruct/pull/639)) -- v0.14.1 -- Add type deprecated ([#534](https://github.com/MetaMask/superstruct/pull/534)) -- replaced deprecated with current API use in introduction docs ([#651](https://github.com/MetaMask/superstruct/pull/651)) -- Bump @babel/core from 7.12.10 to 7.12.13 -- Bump np from 7.2.0 to 7.3.0 -- Bump @babel/register from 7.12.10 to 7.12.13 -- Bump @babel/preset-typescript from 7.12.7 to 7.12.13 -- Bump @typescript-eslint/eslint-plugin from 4.14.1 to 4.14.2 -- Bump @typescript-eslint/parser from 4.14.1 to 4.14.2 -- Bump @babel/preset-env from 7.12.11 to 7.12.13 -- Bump @types/node from 14.14.22 to 14.14.25 -- Bump @babel/cli from 7.12.10 to 7.12.13 -- Bump rollup from 2.38.3 to 2.38.5 -- Bump @typescript-eslint/eslint-plugin from 4.14.0 to 4.14.1 -- Bump @typescript-eslint/parser from 4.14.0 to 4.14.1 -- Bump rollup from 2.38.0 to 2.38.3 -- Bump eslint from 7.18.0 to 7.19.0 -- v0.14.0 -- update changelog -- remove masked coercion, in favor of mask -- make mask() recursive, allow type() pass unknown properties through in mask=true mode ([#629](https://github.com/MetaMask/superstruct/pull/629)) -- Bump eslint-config-prettier from 6.15.0 to 7.2.0 ([#625](https://github.com/MetaMask/superstruct/pull/625)) -- Bump @typescript-eslint/parser from 4.13.0 to 4.14.0 -- Bump @typescript-eslint/eslint-plugin from 4.13.0 to 4.14.0 -- Bump rollup from 2.36.2 to 2.38.0 -- Bump @types/lodash from 4.14.167 to 4.14.168 -- Bump @types/node from 14.14.21 to 14.14.22 -- Bump @typescript-eslint/parser from 4.12.0 to 4.13.0 -- Bump @typescript-eslint/eslint-plugin from 4.12.0 to 4.13.0 -- Bump @types/node from 14.14.20 to 14.14.21 -- Bump rollup from 2.36.1 to 2.36.2 -- Bump eslint from 7.17.0 to 7.18.0 -- v0.13.3 -- fix refiners to run after nested validation, closes #596 -- v0.13.2 -- fix refining of intersection types, closes #605 -- fix custom types example, closes #598 -- Bump @typescript-eslint/eslint-plugin from 4.11.1 to 4.12.0 -- Bump @typescript-eslint/parser from 4.11.1 to 4.12.0 -- Bump eslint-plugin-prettier from 3.3.0 to 3.3.1 -- Bump @types/node from 14.14.19 to 14.14.20 -- Bump rollup from 2.35.1 to 2.36.1 -- Bump eslint from 7.16.0 to 7.17.0 -- Bump np from 7.1.0 to 7.2.0 -- Bump @types/lodash from 4.14.166 to 4.14.167 -- Bump @types/node from 14.14.16 to 14.14.19 -- Bump @typescript-eslint/eslint-plugin from 4.11.0 to 4.11.1 -- Bump @typescript-eslint/parser from 4.11.0 to 4.11.1 -- `struct` => `define` ([#595](https://github.com/MetaMask/superstruct/pull/595)) -- Bump @typescript-eslint/parser from 4.10.0 to 4.11.0 -- Bump @typescript-eslint/eslint-plugin from 4.10.0 to 4.11.0 -- Bump @types/node from 14.14.14 to 14.14.16 -- Bump @types/lodash from 4.14.165 to 4.14.166 -- Bump np from 7.0.0 to 7.1.0 -- Bump @typescript-eslint/parser from 4.9.1 to 4.10.0 -- Bump @babel/preset-env from 7.12.10 to 7.12.11 -- Bump @types/node from 14.14.13 to 14.14.14 -- Bump @typescript-eslint/eslint-plugin from 4.9.1 to 4.10.0 -- Bump eslint from 7.15.0 to 7.16.0 -- Bump rollup from 2.35.0 to 2.35.1 -- v0.13.1 -- preserve schema type in refinements, fixes #581 -- Bump typescript from 4.1.2 to 4.1.3 -- Bump rollup from 2.34.2 to 2.35.0 -- Bump @babel/preset-env from 7.12.7 to 7.12.10 -- Bump eslint-plugin-prettier from 3.2.0 to 3.3.0 -- Bump @typescript-eslint/eslint-plugin from 4.9.0 to 4.9.1 -- Bump @babel/core from 7.12.9 to 7.12.10 -- Bump @typescript-eslint/parser from 4.9.0 to 4.9.1 -- Bump @babel/register from 7.12.1 to 7.12.10 -- Bump @types/node from 14.14.10 to 14.14.13 -- Bump @types/mocha from 8.0.4 to 8.2.0 -- Bump @babel/cli from 7.12.8 to 7.12.10 -- v0.13.0 -- Refactoring traversal logic ([#553](https://github.com/MetaMask/superstruct/pull/553)) -- v0.12.2 -- Add conditional exports to package.json ([#566](https://github.com/MetaMask/superstruct/pull/566)) -- [Security] Bump ini from 1.3.5 to 1.3.7 -- Bump eslint-plugin-prettier from 3.1.4 to 3.2.0 -- Bump rollup from 2.34.0 to 2.34.2 -- Bump @typescript-eslint/eslint-plugin from 4.8.2 to 4.9.0 -- Bump @typescript-eslint/parser from 4.8.2 to 4.9.0 -- Bump eslint from 7.14.0 to 7.15.0 -- Bump prettier from 2.2.0 to 2.2.1 -- Bump rollup from 2.33.3 to 2.34.0 -- Bump @types/node from 14.14.9 to 14.14.10 -- fix links in readme -- v0.12.1 -- remove unused babel plugins, reduce size a bit -- v0.12.0 -- remove vscode files -- add np as dep -- update changelog -- change coercions to include more type safety ([#551](https://github.com/MetaMask/superstruct/pull/551)) -- fix docs -- fix readme -- add Describe helper -- update example -- update docs -- Merge branch 'master' of github.com:ianstormtaylor/superstruct -- update error docs -- Bump @babel/preset-env from 7.12.1 to 7.12.7 -- Bump rollup from 2.33.1 to 2.33.3 -- Bump @babel/preset-typescript from 7.12.1 to 7.12.7 -- Bump prettier from 2.1.2 to 2.2.0 -- Bump @babel/cli from 7.12.1 to 7.12.7 -- Bump @types/mocha from 8.0.3 to 8.0.4 -- Bump @types/node from 14.14.6 to 14.14.9 -- Bump @babel/core from 7.12.3 to 7.12.7 -- v0.11.1 -- add deprecated struct function, closes #539 -- add double-nested deep coercion test -- Use `readonly` modifier in enums to accept readonly const arrays ([#541](https://github.com/MetaMask/superstruct/pull/541)) -- update docs in readme -- update docs -- update docs -- v0.11.0 -- make assign work without arrays -- Add structs, cleanup typings ([#383](https://github.com/MetaMask/superstruct/pull/383)) -- v0.10.13 -- Fix ability to get multiple failures (#394) ([#394](https://github.com/MetaMask/superstruct/pull/394)) -- Bump rollup-plugin-terser from 6.1.0 to 7.0.2 ([#481](https://github.com/MetaMask/superstruct/pull/481)) -- Bump @types/mocha from 7.0.2 to 8.0.3 ([#460](https://github.com/MetaMask/superstruct/pull/460)) -- Update reference docs on `array` ([#432](https://github.com/MetaMask/superstruct/pull/432)) -- fix partial reference docs ([#496](https://github.com/MetaMask/superstruct/pull/496)) -- chore(docs): Update `record` entry ([#438](https://github.com/MetaMask/superstruct/pull/438)) -- docs: escape pipe character to fix error properties table ([#425](https://github.com/MetaMask/superstruct/pull/425)) -- Bump @types/lodash from 4.14.164 to 4.14.165 -- Bump mocha from 8.2.0 to 8.2.1 -- Bump @types/lodash from 4.14.162 to 4.14.164 -- Bump rollup from 2.32.1 to 2.33.1 -- Bump @types/node from 14.14.5 to 14.14.6 -- Bump eslint-config-prettier from 6.14.0 to 6.15.0 -- Bump rollup from 2.32.0 to 2.32.1 -- Bump @types/node from 14.11.11 to 14.14.5 -- Bump eslint-config-prettier from 6.13.0 to 6.14.0 -- Bump rollup-plugin-ts from 1.3.0 to 1.3.7 -- Bump @babel/plugin-transform-modules-commonjs from 7.10.4 to 7.12.1 -- Bump @babel/cli from 7.11.6 to 7.12.1 -- Bump @babel/core from 7.11.6 to 7.12.3 -- Bump eslint-config-prettier from 6.12.0 to 6.13.0 -- Bump @babel/plugin-proposal-class-properties from 7.10.4 to 7.12.1 -- Bump rollup from 2.29.0 to 2.32.0 -- Bump @babel/register from 7.11.5 to 7.12.1 -- Bump @types/node from 14.11.8 to 14.11.11 -- Bump @babel/plugin-proposal-object-rest-spread from 7.11.0 to 7.12.1 -- Bump mocha from 8.1.3 to 8.2.0 -- Bump @babel/preset-typescript from 7.10.4 to 7.12.1 -- [Security] Bump object-path from 0.11.4 to 0.11.5 -- Bump rollup from 2.28.2 to 2.29.0 -- Bump @types/node from 14.11.5 to 14.11.8 -- Bump @types/lodash from 4.14.161 to 4.14.162 -- Bump @types/node from 14.11.2 to 14.11.5 -- Bump rollup from 2.28.1 to 2.28.2 -- Bump eslint-plugin-import from 2.22.0 to 2.22.1 -- Bump eslint-config-prettier from 6.11.0 to 6.12.0 -- Bump @types/node from 14.10.1 to 14.11.2 -- Bump prettier from 2.1.1 to 2.1.2 -- Bump rollup from 2.26.11 to 2.28.1 -- Bump @types/node from 14.6.4 to 14.10.1 -- Bump rollup from 2.26.8 to 2.26.11 -- Bump @babel/core from 7.11.5 to 7.11.6 -- Bump @babel/cli from 7.11.5 to 7.11.6 -- Bump @types/node from 14.6.2 to 14.6.4 -- Bump @types/node from 14.6.0 to 14.6.2 -- Bump rollup from 2.26.5 to 2.26.8 -- Bump prettier from 2.1.0 to 2.1.1 -- Bump @babel/cli from 7.10.5 to 7.11.5 -- Bump @babel/register from 7.10.5 to 7.11.5 -- Bump @babel/core from 7.11.4 to 7.11.5 -- Bump @types/lodash from 4.14.160 to 4.14.161 -- Bump @babel/preset-env from 7.11.0 to 7.11.5 -- Bump mocha from 8.1.1 to 8.1.3 -- Bump prettier from 2.0.5 to 2.1.0 -- Bump @babel/core from 7.11.1 to 7.11.4 -- Bump @types/lodash from 4.14.159 to 4.14.160 -- Bump rollup from 2.26.3 to 2.26.5 -- Bump rollup from 2.23.1 to 2.26.3 -- Bump lodash from 4.17.19 to 4.17.20 -- Bump @types/node from 14.0.27 to 14.6.0 -- Bump mocha from 8.1.0 to 8.1.1 -- Bump @babel/core from 7.11.0 to 7.11.1 -- Bump rollup from 2.23.0 to 2.23.1 -- Bump @types/lodash from 4.14.158 to 4.14.159 -- Bump @babel/preset-env from 7.10.4 to 7.11.0 -- Bump @types/node from 14.0.26 to 14.0.27 -- Bump rollup-plugin-ts from 1.2.28 to 1.3.0 -- Bump mocha from 8.0.1 to 8.1.0 -- Bump @babel/plugin-proposal-object-rest-spread from 7.10.4 to 7.11.0 -- Bump rollup from 2.22.1 to 2.23.0 -- Bump @types/node from 14.0.23 to 14.0.26 -- Bump @types/lodash from 4.14.157 to 4.14.158 -- Bump typescript from 3.9.6 to 3.9.7 -- Bump @babel/core from 7.10.4 to 7.10.5 -- Bump @babel/cli from 7.10.4 to 7.10.5 -- Bump rollup from 2.21.0 to 2.22.1 -- Bump @babel/register from 7.10.4 to 7.10.5 -- Bump rollup from 2.20.0 to 2.21.0 -- Bump @types/node from 14.0.18 to 14.0.23 -- Bump rollup-plugin-ts from 1.2.27 to 1.2.28 -- Bump lodash from 4.17.15 to 4.17.19 -- Bump rollup-plugin-ts from 1.2.24 to 1.2.27 -- Bump @babel/preset-env from 7.10.3 to 7.10.4 -- Bump @babel/plugin-proposal-object-rest-spread from 7.10.3 to 7.10.4 -- Bump @babel/core from 7.10.3 to 7.10.4 -- Bump @babel/register from 7.10.3 to 7.10.4 -- Bump @babel/plugin-transform-modules-commonjs from 7.10.1 to 7.10.4 -- Bump typescript from 3.9.5 to 3.9.6 -- Bump @babel/cli from 7.10.3 to 7.10.4 -- Bump @types/node from 14.0.14 to 14.0.18 -- Bump @babel/preset-typescript from 7.10.1 to 7.10.4 -- Bump @babel/plugin-proposal-class-properties from 7.10.1 to 7.10.4 -- Bump rollup from 2.18.1 to 2.20.0 -- Bump eslint-plugin-import from 2.21.2 to 2.22.0 -- Bump rollup from 2.18.0 to 2.18.1 -- Bump @types/node from 14.0.13 to 14.0.14 -- Bump @types/lodash from 4.14.156 to 4.14.157 -- Bump @babel/core from 7.10.2 to 7.10.3 -- Bump @babel/preset-env from 7.10.2 to 7.10.3 -- Bump @babel/plugin-proposal-object-rest-spread from 7.10.1 to 7.10.3 -- Bump @types/lodash from 4.14.155 to 4.14.156 -- Bump @babel/cli from 7.10.1 to 7.10.3 -- Bump rollup from 2.16.1 to 2.18.0 -- Bump @babel/register from 7.10.1 to 7.10.3 -- v0.10.12 -- Bump mocha from 7.2.0 to 8.0.1 ([#385](https://github.com/MetaMask/superstruct/pull/385)) -- Optional properties ([#390](https://github.com/MetaMask/superstruct/pull/390)) -- Add TypeScript info to Docs ([#393](https://github.com/MetaMask/superstruct/pull/393)) -- Added import using wildcard to docs ([#391](https://github.com/MetaMask/superstruct/pull/391)) -- Add `nullable` method to docs ([#392](https://github.com/MetaMask/superstruct/pull/392)) -- Bump eslint-plugin-import from 2.21.1 to 2.21.2 -- Bump @types/node from 14.0.12 to 14.0.13 -- Bump eslint-plugin-prettier from 3.1.3 to 3.1.4 -- Bump rollup from 2.15.0 to 2.16.1 -- update readme -- v0.10.11 -- fix type of opaque objects, add test -- v0.10.10 -- fix union type inference, fixes #381 -- v0.10.9 -- fix lint -- remove unnecessary test file -- widen literal struct, add type tests for all structs -- improve type inferring to enums struct -- v0.10.8 -- increase union, intersection, tuple overloads -- v0.10.7 -- update docs -- add empty refinement -- v0.10.6 -- add nullable type -- fix opaque array type definition -- v0.10.4 -- fix opaque object struct type -- add missing tests -- add opaque mode for objects -- add opaque mode for arrays -- v0.10.3 -- fix rollup typescript logic -- improve type inferring for literal structs -- update demo screenshot -- Bump rollup-plugin-terser from 5.3.0 to 6.1.0 ([#366](https://github.com/MetaMask/superstruct/pull/366)) -- Bump eslint-plugin-import from 2.20.2 to 2.21.1 -- Bump rollup from 2.12.0 to 2.15.0 -- Bump typescript from 3.9.3 to 3.9.5 -- Bump @babel/cli from 7.8.4 to 7.10.1 -- Bump @types/lodash from 4.14.152 to 4.14.155 -- Bump @types/node from 14.0.6 to 14.0.12 -- v0.10.2 -- Update struct.ts ([#365](https://github.com/MetaMask/superstruct/pull/365)) -- v0.10.1 -- fix error.branch logic -- v0.10.0 -- fix to preserve schema on optional structs, fixes #91 -- update changelog -- Upgrade api ([#363](https://github.com/MetaMask/superstruct/pull/363)) -- Update ci.yml -- Create ci.yml -- Bump mocha from 6.2.2 to 7.2.0 ([#349](https://github.com/MetaMask/superstruct/pull/349)) -- Bump tiny-invariant from 1.0.6 to 1.1.0 ([#263](https://github.com/MetaMask/superstruct/pull/263)) -- Bump prettier from 1.18.2 to 2.0.5 ([#326](https://github.com/MetaMask/superstruct/pull/326)) -- Bump @types/mocha from 5.2.7 to 7.0.2 ([#288](https://github.com/MetaMask/superstruct/pull/288)) -- Bump rollup-plugin-typescript2 from 0.24.3 to 0.27.1 ([#346](https://github.com/MetaMask/superstruct/pull/346)) -- Bump rollup from 1.31.1 to 2.12.0 ([#356](https://github.com/MetaMask/superstruct/pull/356)) -- Bump @types/node from 12.12.21 to 14.0.6 ([#361](https://github.com/MetaMask/superstruct/pull/361)) -- v0.8.4 -- Bump @babel/preset-env from 7.9.6 to 7.10.2 -- Bump @babel/plugin-proposal-object-rest-spread from 7.9.6 to 7.10.1 -- Bump @babel/preset-typescript from 7.9.0 to 7.10.1 -- Bump @babel/register from 7.8.3 to 7.10.1 -- Bump @babel/core from 7.9.6 to 7.10.2 -- Bump @types/lodash from 4.14.151 to 4.14.152 -- Bump typescript from 3.8.3 to 3.9.3 -- Bump @types/lodash from 4.14.150 to 4.14.151 -- Bump @typescript-eslint/eslint-plugin from 2.32.0 to 2.34.0 -- Bump @typescript-eslint/parser from 2.32.0 to 2.34.0 -- [Security] Bump handlebars from 4.4.2 to 4.7.6 -- Bump @typescript-eslint/parser from 2.31.0 to 2.32.0 -- Bump @typescript-eslint/eslint-plugin from 2.31.0 to 2.32.0 -- Bump @typescript-eslint/eslint-plugin from 2.28.0 to 2.31.0 -- Bump @babel/core from 7.9.0 to 7.9.6 -- Bump @typescript-eslint/parser from 2.29.0 to 2.31.0 -- Bump @babel/preset-env from 7.9.5 to 7.9.6 -- [Security] Bump jquery from 3.4.1 to 3.5.0 -- Bump eslint-plugin-prettier from 3.1.2 to 3.1.3 -- Bump @typescript-eslint/parser from 2.26.0 to 2.29.0 -- Bump eslint-config-prettier from 6.10.1 to 6.11.0 -- Bump @typescript-eslint/eslint-plugin from 2.27.0 to 2.28.0 -- Bump eslint-plugin-import from 2.20.1 to 2.20.2 -- Bump @types/lodash from 4.14.148 to 4.14.150 -- Bump @typescript-eslint/eslint-plugin from 2.26.0 to 2.27.0 -- Bump @babel/preset-env from 7.9.0 to 7.9.5 -- Bump @typescript-eslint/eslint-plugin from 2.25.0 to 2.26.0 -- Bump @typescript-eslint/parser from 2.23.0 to 2.26.0 -- Bump eslint-config-prettier from 6.10.0 to 6.10.1 -- Bump rollup-plugin-terser from 5.2.0 to 5.3.0 -- Bump @typescript-eslint/eslint-plugin from 2.20.0 to 2.25.0 -- Bump @babel/core from 7.8.6 to 7.9.0 -- Bump @babel/preset-env from 7.8.7 to 7.9.0 -- Bump @babel/plugin-transform-modules-commonjs from 7.8.3 to 7.9.0 -- Bump @babel/preset-typescript from 7.8.3 to 7.9.0 -- Bump typescript from 3.8.2 to 3.8.3 -- Bump @typescript-eslint/parser from 2.19.2 to 2.23.0 -- Bump rollup-plugin-babel from 4.3.3 to 4.4.0 -- [Security] Bump acorn from 7.1.0 to 7.1.1 -- Bump babel-eslint from 10.0.3 to 10.1.0 -- Bump @babel/preset-env from 7.8.3 to 7.8.7 -- Bump @babel/core from 7.8.4 to 7.8.6 -- Bump typescript from 3.7.5 to 3.8.2 -- Bump rollup from 1.31.0 to 1.31.1 -- Bump @typescript-eslint/eslint-plugin from 2.19.2 to 2.20.0 -- Bump @typescript-eslint/parser from 2.19.0 to 2.19.2 -- Bump @typescript-eslint/eslint-plugin from 2.19.0 to 2.19.2 -- Bump eslint-config-prettier from 6.9.0 to 6.10.0 -- Bump @typescript-eslint/eslint-plugin from 2.18.0 to 2.19.0 -- Bump @typescript-eslint/parser from 2.18.0 to 2.19.0 -- Bump eslint-plugin-import from 2.20.0 to 2.20.1 -- Bump @typescript-eslint/parser from 2.14.0 to 2.18.0 -- Bump @babel/core from 7.8.3 to 7.8.4 -- Bump @babel/cli from 7.8.3 to 7.8.4 -- Bump rollup from 1.29.0 to 1.31.0 -- Bump @typescript-eslint/eslint-plugin from 2.17.0 to 2.18.0 -- Bump @typescript-eslint/eslint-plugin from 2.15.0 to 2.17.0 -- Bump @babel/cli from 7.7.7 to 7.8.3 -- Bump @babel/plugin-proposal-class-properties from 7.8.0 to 7.8.3 -- Bump @babel/register from 7.8.0 to 7.8.3 -- Bump kind-of from 6.0.2 to 6.0.3 -- Bump @babel/core from 7.7.7 to 7.8.3 -- Bump @babel/preset-typescript from 7.8.0 to 7.8.3 -- Bump typescript from 3.7.4 to 3.7.5 -- Bump rollup-plugin-terser from 5.1.3 to 5.2.0 -- Bump eslint-plugin-import from 2.19.1 to 2.20.0 -- Bump @babel/preset-env from 7.7.7 to 7.8.3 -- Bump @babel/plugin-transform-modules-commonjs from 7.7.5 to 7.8.0 -- Bump @typescript-eslint/eslint-plugin from 2.14.0 to 2.15.0 -- Bump @babel/plugin-proposal-object-rest-spread from 7.7.7 to 7.8.0 -- Bump @babel/preset-typescript from 7.7.7 to 7.8.0 -- Bump rollup from 1.28.0 to 1.29.0 -- Bump @babel/register from 7.7.7 to 7.8.0 -- Bump @babel/plugin-proposal-class-properties from 7.7.4 to 7.8.0 -- Bump @typescript-eslint/parser from 2.13.0 to 2.14.0 -- Bump @typescript-eslint/eslint-plugin from 2.13.0 to 2.14.0 -- Bump @babel/cli from 7.7.0 to 7.7.7 -- Bump rollup from 1.27.14 to 1.28.0 -- Bump eslint-config-prettier from 6.6.0 to 6.9.0 -- Bump typescript from 3.7.2 to 3.7.4 -- Bump eslint-plugin-prettier from 3.1.1 to 3.1.2 -- Bump rollup from 1.27.1 to 1.27.14 -- Bump @typescript-eslint/parser from 2.7.0 to 2.13.0 -- Bump eslint-plugin-import from 2.18.2 to 2.19.1 -- Bump @typescript-eslint/eslint-plugin from 2.12.0 to 2.13.0 -- Bump @babel/plugin-proposal-class-properties from 7.7.0 to 7.7.4 -- Bump rollup-plugin-terser from 5.1.2 to 5.1.3 -- Bump @babel/preset-typescript from 7.7.4 to 7.7.7 -- Bump @babel/preset-env from 7.7.1 to 7.7.7 -- Bump eslint from 6.6.0 to 6.8.0 -- Bump @types/node from 12.12.8 to 12.12.21 -- Bump @babel/register from 7.7.0 to 7.7.7 -- Bump @babel/core from 7.7.5 to 7.7.7 -- Bump @typescript-eslint/eslint-plugin from 2.7.0 to 2.12.0 -- Bump @babel/plugin-proposal-object-rest-spread from 7.6.2 to 7.7.7 -- fix incorrect test imports -- v0.8.3 -- expose main with `.cjs` extension -- fix cjs import -- Bump @babel/preset-typescript from 7.7.2 to 7.7.4 -- Bump @babel/core from 7.7.2 to 7.7.5 -- Bump @babel/plugin-transform-modules-commonjs from 7.7.0 to 7.7.5 -- Bump @typescript-eslint/parser from 2.6.1 to 2.7.0 -- Bump @types/node from 12.12.7 to 12.12.8 -- Bump @babel/plugin-proposal-class-properties from 7.5.5 to 7.7.0 -- Bump eslint-config-prettier from 6.5.0 to 6.6.0 -- Bump @babel/cli from 7.6.4 to 7.7.0 -- Bump @typescript-eslint/eslint-plugin from 2.6.1 to 2.7.0 -- Bump @types/lodash from 4.14.146 to 4.14.148 -- Bump rollup from 1.26.5 to 1.27.1 -- Bump @babel/preset-typescript from 7.6.0 to 7.7.2 -- Bump @babel/preset-env from 7.6.3 to 7.7.1 -- Bump @types/node from 12.12.5 to 12.12.7 -- Bump typescript from 3.6.4 to 3.7.2 -- Bump @babel/core from 7.6.4 to 7.7.2 -- Bump rollup from 1.26.3 to 1.26.5 -- Bump @typescript-eslint/eslint-plugin from 2.6.0 to 2.6.1 -- Bump @typescript-eslint/parser from 2.6.0 to 2.6.1 -- Bump @babel/register from 7.6.2 to 7.7.0 -- Bump @types/lodash from 4.14.144 to 4.14.146 -- Bump @babel/plugin-transform-modules-commonjs from 7.6.0 to 7.7.0 -- Bump @types/node from 12.11.7 to 12.12.5 -- Bump rollup from 1.26.0 to 1.26.3 -- Bump @typescript-eslint/eslint-plugin from 2.5.0 to 2.6.0 -- Bump @typescript-eslint/parser from 2.5.0 to 2.6.0 -- Bump @types/node from 12.11.2 to 12.11.7 -- Bump rollup from 1.25.1 to 1.26.0 -- Bump eslint-config-prettier from 6.4.0 to 6.5.0 -- Bump eslint from 6.5.1 to 6.6.0 -- Bump @typescript-eslint/parser from 2.4.0 to 2.5.0 -- Bump @types/node from 12.7.12 to 12.11.2 -- Bump @typescript-eslint/eslint-plugin from 2.4.0 to 2.5.0 ([#157](https://github.com/MetaMask/superstruct/pull/157)) -- Bump @types/node from 12.7.12 to 12.11.1 ([#150](https://github.com/MetaMask/superstruct/pull/150)) -- Bump mocha from 6.2.1 to 6.2.2 ([#153](https://github.com/MetaMask/superstruct/pull/153)) -- Bump rollup from 1.25.0 to 1.25.1 ([#154](https://github.com/MetaMask/superstruct/pull/154)) -- Bump rollup from 1.24.0 to 1.25.0 ([#152](https://github.com/MetaMask/superstruct/pull/152)) -- Bump rollup from 1.23.1 to 1.24.0 ([#149](https://github.com/MetaMask/superstruct/pull/149)) -- Bump @typescript-eslint/eslint-plugin from 2.3.3 to 2.4.0 ([#148](https://github.com/MetaMask/superstruct/pull/148)) -- Bump @typescript-eslint/parser from 2.3.3 to 2.4.0 ([#147](https://github.com/MetaMask/superstruct/pull/147)) -- fix error shape in docs -- [Security] Bump mixin-deep from 1.3.1 to 1.3.2 ([#144](https://github.com/MetaMask/superstruct/pull/144)) -- Bump @babel/core from 7.6.3 to 7.6.4 ([#145](https://github.com/MetaMask/superstruct/pull/145)) -- Bump @babel/cli from 7.6.3 to 7.6.4 ([#146](https://github.com/MetaMask/superstruct/pull/146)) -- v0.8.2 -- remove old rollup-plugin-typescript -- fix rollup-plugin-terser appearing in dependencies -- Bump mocha from 4.0.1 to 6.2.1 ([#142](https://github.com/MetaMask/superstruct/pull/142)) -- v0.8.1 -- fix lint:eslint script -- upgrade dependencies, fix kind-of types -- convert tests typescript as well, fix typings for defaults -- v0.8.0 -- update fix/lint scripts -- Add .editorconfig ([#138](https://github.com/MetaMask/superstruct/pull/138)) -- Add typescript ([#139](https://github.com/MetaMask/superstruct/pull/139)) -- v0.7.0 -- update changelog -- feat: build compiles down to ES5 syntax ([#128](https://github.com/MetaMask/superstruct/pull/128)) -- v0.6.2 -- Validate that an interface is an object before checking it's properties ([#130](https://github.com/MetaMask/superstruct/pull/130)) -- Provides better error messages for nested errors ([#126](https://github.com/MetaMask/superstruct/pull/126)) -- Fixed default values defined as functions for interface structs ([#132](https://github.com/MetaMask/superstruct/pull/132)) -- v0.6.1 -- Dynamic structs ([#124](https://github.com/MetaMask/superstruct/pull/124)) -- Add missing `value` parameter in the `function` reference ([#121](https://github.com/MetaMask/superstruct/pull/121)) -- v0.6.0 -- remove `np` dev dependency -- update changelog -- pass all errors of composed structs for #111 ([#112](https://github.com/MetaMask/superstruct/pull/112)) -- fix to throw out invalid date objects ([#116](https://github.com/MetaMask/superstruct/pull/116)) -- v0.5.4 -- dict, interface defaults subset ([#106](https://github.com/MetaMask/superstruct/pull/106)) -- v0.5.3 -- Return an { message, path } object from custom types ([#105](https://github.com/MetaMask/superstruct/pull/105)) -- v0.5.2 -- Fix error reason on optional custom types ([#101](https://github.com/MetaMask/superstruct/pull/101)) -- add all shorthands to documentation -- update documentation -- v0.5.1 -- add prettier -- cleanup style -- Add static 'format' method on StructError ([#95](https://github.com/MetaMask/superstruct/pull/95)) -- Add `micro-superstruct` to resources.md ([#87](https://github.com/MetaMask/superstruct/pull/87)) -- add resources doc ([#84](https://github.com/MetaMask/superstruct/pull/84)) -- fix catalog href ([#73](https://github.com/MetaMask/superstruct/pull/73)) -- Fix issue where version badge linked to 404 ([#74](https://github.com/MetaMask/superstruct/pull/74)) -- v0.5.0 -- cleanup -- update changelog -- ignore package-lock.json -- remove package-lock.json -- update yarn.lock -- Strip out NODE_ENV in UMD build ([#71](https://github.com/MetaMask/superstruct/pull/71)) -- Allow custom error messages for user defined types ([#65](https://github.com/MetaMask/superstruct/pull/65)) -- replace uglifyify with rollup plugin ([#70](https://github.com/MetaMask/superstruct/pull/70)) -- update travis config, fix lint ([#72](https://github.com/MetaMask/superstruct/pull/72)) -- Allow cross referencing a value in an object when performing ([#66](https://github.com/MetaMask/superstruct/pull/66)) -- v0.4.12 -- refactor without prototype tests -- Cannot convert object to primitive value ([#59](https://github.com/MetaMask/superstruct/pull/59)) -- Add document for struct.lazy() ([#61](https://github.com/MetaMask/superstruct/pull/61)) -- v0.4.11 -- add lazy structs, closes #55 -- Superscript -> Superstruct ([#56](https://github.com/MetaMask/superstruct/pull/56)) -- v0.4.10 -- add `partial` struct, closes #45 -- v0.4.9 -- add computed defaults properties for object structs -- v0.4.8 -- fix object property defaults for struct properties -- v0.4.7 -- add `enums` struct, closes #54 -- export `isStruct`, closes #50 -- fix resolving defaults from functions, closes #53 -- v0.4.6 -- fix object defaults -- add composing structs to docs -- v0.4.5 -- add promise to types reference -- Feature: Added promise-type support to default types -- update readme -- update guide -- update install guide -- update types reference -- update types reference -- update types reference -- update types and errors docs -- fix typo in readme, closes #41 -- v0.4.4 -- add `interface` struct -- add `instance` struct -- add `literal` struct -- Fix Examples From Guide -- fix throwing errors example with expected values -- update readme -- update readme -- update readme -- add live demo to readme -- v0.4.3 -- refactor constants -- v0.4.2 -- update deps -- Merge branch 'master' of github.com:ianstormtaylor/superstruct -- remove invariant usage -- add more invariants to kinds -- Merge branch 'master' into fix-typos -- v0.4.1 -- fix typo: s/Javascript/JavaScript/g -- Compatible with non-v8 environment -- v0.4.0 -- update docs and changelog -- update changelog -- refactor kind logic, add enum, tuple, dict, union, intersection -- update to use kind-of error checking -- remove mkdir calls from build scripts -- update build scripts -- update size badge in readme -- v0.3.2 -- switch to bundling with rollup -- add kinds to other schemas -- v0.3.1 -- add invariant to reduce bundle size -- refactor schemas -- cleanup -- update readme -- update errors reference -- update changelog -- 0.3.0 -- refactor scripts, remove npmignore, add minification -- update docs -- change to return an error and result from validate -- update docs and examples -- refactor struct errors to be simpler -- v0.2.1 -- re-add error default type -- add more default types, closes #3 closes #4 -- switch clone and type checking deps -- refactor struct factory to expose kind factories -- v0.2.0 -- update changelog -- update readme, examples and docs -- refactor tests -- convert structs to be plain functions -- update readme -- update badges in readme -- add size and license badges to readme -- v0.1.1 -- migrate to lodash modules -- add optional values example -- update readme -- update reference -- fix babelrc -- add returning errors example -- fix examples -- update readme -- update readme -- update readme -- update docs -- update examples -- update docs -- update docs -- v0.1.0 -- update changelog -- add changelog -- fix import example in docs -- typo -- fix unpkg url in docs -- typo -- rename `get` method to `default` -- cleanup -- convert to using classes -- update docs -- update readme -- update readme -- v0.0.5 -- fix default `function` type -- update readme -- update docs -- update docs -- update docs -- update docs and examples -- add composing-structs example, add docs -- add examples -- update readme -- update banner -- update banner -- remove downloads badge -- update badges -- update readme -- v0.0.4 -- refactor errors and default types -- v0.0.3 -- switch to using component-type -- update readme -- v0.0.2 -- add dist -- update readme -- update readme -- update readme -- v0.0.1 -- update readme -- refactor defaults logic -- update readme, add named `struct` export -- rename `createStruct` to `superstruct` -- add list enum test -- add enum support -- handle paths on custom errors, make nested objects optional -- allow for throw custom errors, make any function a struct -- update readme, update docs -- refactor error catching -- add `element_invalid` error -- update banner image -- refactor test dir structure more -- refactor test dir structure -- handle nested struct required/invalid -- change `schema` error property to `type` -- add more optional tests -- swap optional and required, update readme -- add images, update readme -- update readme -- add custom type tests -- refactor, add more tests -- first commit +### Changed + +- Prepare package for releasing under `@metamask` organisation ([#1](https://github.com/MetaMask/superstruct/pull/1), [#3](https://github.com/MetaMask/superstruct/pull/3), [#4](https://github.com/MetaMask/superstruct/pull/4), [#5](https://github.com/MetaMask/superstruct/pull/5), [#6](https://github.com/MetaMask/superstruct/pull/6), [#7](https://github.com/MetaMask/superstruct/pull/7), [#8](https://github.com/MetaMask/superstruct/pull/8), [#12](https://github.com/MetaMask/superstruct/pull/12)) + - The package name is now `@metamask/superstruct`. + - The changelog file has been renamed to `CHANGELOG.md`, and the format has changed to fit MetaMask's changelog style. + +### Fixed + +- **BREAKING:** Expose CommonJS and ESM builds via package manifest `exports` ([#5](https://github.com/MetaMask/superstruct/pull/5)) + - It's no longer possible to import files from the `dist` folder directly. ## [1.0.0]