UNPKG

object-no-new-keys

Version:

Check, does a plain object (AST/JSON) has any unique keys, not present in a reference object (another AST/JSON)

136 lines (74 loc) 4.39 kB
# Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## 5.1.0 (2023-05-13) ### Features - tweak the types ([3acf41d](https://github.com/codsen/codsen/commit/3acf41df2fd439fbc297c55c291cf422ce1ae622)) ## 5.0.0 (2022-12-01) ### BREAKING CHANGES - Minimum supported Node version is v14.18; we're dropping v12 support ## 4.2.0 (2022-08-12) ### Features - export types ([1dc433f](https://github.com/codsen/codsen/commit/1dc433f2989232a8a5887a9d10dfacc0787dcd93)) - export types ([11b5fb9](https://github.com/codsen/codsen/commit/11b5fb936ce20e0a77c3a09806773e1cd7695c50)) ## 4.1.3 (2022-04-25) ### Fixed - improve types ([f2b1ea1](https://github.com/codsen/codsen/commit/f2b1ea1dee7b912cf1e9d5f30e7483f49b3f8d07)) ## 4.1.2 (2022-04-18) ### Fixed - tweak types ([fe67aa5](https://github.com/codsen/codsen/commit/fe67aa510c5523969e83d905c7420106081d4a8b)) ## 4.1.0 (2022-04-10) ### Features - export defaults ([a968629](https://github.com/codsen/codsen/commit/a968629d5cabe320b946c636baea46772bf0d471)) ## 4.0.0 (2021-09-09) ### Features - migrate to ES Modules ([8c9d95d](https://github.com/codsen/codsen/commit/8c9d95d5dea0b769c2f070397141918a4893d575)) ### BREAKING CHANGES - programs now are in ES Modules and won't work with Common JS `require()` ## 3.1.0 (2021-05-24) ### Features - config file based major bump blacklisting ([e15f9bb](https://github.com/codsen/codsen/commit/e15f9bba1c4fd5f847ac28b3f38fa6ee633f5dca)) ## 3.0.15 (2021-04-11) ### Reverts - Revert "chore: setup refresh" ([23cf206](https://github.com/codsen/codsen/commit/23cf206970a087ff0fa04e61f94d919f59ab3881)) ## 3.0.1 (2021-01-28) ### Fixed - add `testStats` to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29)) ## 3.0.0 (2021-01-23) ### Features - rewrite in TS, start using named exports ([589c048](https://github.com/codsen/codsen/commit/589c048c11cdfc8a8a112f042b96af33edb331eb)) ### BREAKING CHANGES - previously: `import noNewKeys from ...` - now `import { noNewKeys } from ...` ## 2.10.0 (2020-11-28) Accidental version bump during migration to SourceHut. Sorry about that. ## 2.9.0 (2020-02-01) ### Features - rebase a little bit, remove a dependency, improve the input arg validation ([7718957](https://gitlab.com/codsen/codsen/commit/77189572e18e032c74c95a909144636c9a9f96af)) ## 2.8.0 (2019-10-02) - Remove option type checking to make program run around 54 times faster ([5acc5f6](https://gitlab.com/codsen/codsen/commit/5acc5f6)) ## 2.7.0 (2019-01-20) - Various documentation and setup tweaks after we migrated to monorepo - Setup refresh: updated dependencies and all config files using automated tools ## 2.3.0 (2018-10-24) - Updated all dependencies - Restored coveralls.io reporting - Restored unit test linting ## 2.2.0 (2018-06-16) GitHub sold us out. In the meantime, we: - Migrated to Bitbucket (to host repo + perform CI) and Codacy (for code quality audit) - Dropped BitHound (RIP) and Travis ## 2.1.0 (2018-05-26) - Set up [Prettier](https://prettier.io) on a custom ESLint rule set. - Removed `package.lock` and `.editorconfig` - Wired Rollup to remove comments from non-dev builds. This means we can now leave the `console.log`s in the source code — there's no need to comment-out `console.log` statements or care about them not spilling into production. Now it's done automatically. - Unit tests are pointing at ES modules build, which means that code coverage is correct now, without Babel functions being missed. This is important because now code coverage is real again and now there are no excuses not to perfect it. ## 2.0.0 (2017-12-12) - Rebased in ES Modules - Set up Rollup. Now we generate and serve three builds: CommonJS, UMD and ES Modules. - Whole setup overhaul to match my latest understanding how things should be set. ## 1.1.0 (2017-07-25) - Since mode is integer, some people might pass integer as a third argument (instead of if passing plain object, `{mode: 1||2}`. I added a human-friendly error message which explains it's wrong if it's happens. - `object-assign` from dependencies, switched to native ES6 `Object.assign` - `type-detect` replacing it with 10 times lighter `lodash.isplainobject` ## 1.0.0 (2017-05-15) - First public release