UNPKG

object.getprototypeof

Version:

An ES5 mostly-spec-compliant `Object.getPrototypeOf` sham/polyfill/replacement that works in as many engines as possible

116 lines (89 loc) 12 kB
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [v1.0.7](https://github.com/es-shims/Object.getPrototypeOf/compare/v1.0.6...v1.0.7) - 2025-01-02 ### Commits - [actions] split out node 10-20, and 20+ [`66e0766`](https://github.com/es-shims/Object.getPrototypeOf/commit/66e0766e7510e6eb9ae4d720b569130740b73072) - [Tests] remove unused ESM tests [`038e9c6`](https://github.com/es-shims/Object.getPrototypeOf/commit/038e9c6cc3985b063a13eac48a61eb801d9e6153) - [Refactor] use `get-proto` directly [`675ecee`](https://github.com/es-shims/Object.getPrototypeOf/commit/675eceeeb0660376dba8a8834f4fccbe2ee1b869) - [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `auto-changelog`, `tape` [`d606eaa`](https://github.com/es-shims/Object.getPrototypeOf/commit/d606eaa60d4edbbb1f1c938b0008495415365ac3) - [Deps] update `call-bind`, `reflect.getprototypeof` [`004d807`](https://github.com/es-shims/Object.getPrototypeOf/commit/004d807467371da2094a5c3602da87a4d5cd497d) - [Tests] replace `aud` with `npm audit` [`67b494b`](https://github.com/es-shims/Object.getPrototypeOf/commit/67b494b5bd1f674192c9942da81af008692cdd65) - [Dev Deps] add missing dev dep [`1993c8d`](https://github.com/es-shims/Object.getPrototypeOf/commit/1993c8dcf7d45c6a7d9c007290cadc01770ddf54) - [Dev Deps] add missing peer dep [`bfe72fa`](https://github.com/es-shims/Object.getPrototypeOf/commit/bfe72fa67c4257c994f97bc60b6e34951ad7ed70) ## [v1.0.6](https://github.com/es-shims/Object.getPrototypeOf/compare/v1.0.5...v1.0.6) - 2024-03-16 ### Commits - [meta] remove useless ESM [`3d76802`](https://github.com/es-shims/Object.getPrototypeOf/commit/3d76802b41c3815e2e30a1de8e560e1db2c153a6) - [Refactor] replace `es-abstract` with `es-object-atoms`; update `call-bind`, `define-properties`, `reflect.getprototypeof` [`7824d81`](https://github.com/es-shims/Object.getPrototypeOf/commit/7824d81a3b6aea7a054038a1ddd6b3e5add73663) - [Dev Deps] update `aud`, `npmignore`, `tape` [`d87f382`](https://github.com/es-shims/Object.getPrototypeOf/commit/d87f38214f54c260cdc1f0d912972adf777042fd) ## [v1.0.5](https://github.com/es-shims/Object.getPrototypeOf/compare/v1.0.4...v1.0.5) - 2023-09-07 ### Commits - [Deps] update `define-properties`, `es-abstract`, `reflect.getprototype.of` [`fbb89b9`](https://github.com/es-shims/Object.getPrototypeOf/commit/fbb89b9a893bc30a402582690017b5c5d6c7295f) - [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `aud`, `tape` [`806bcbe`](https://github.com/es-shims/Object.getPrototypeOf/commit/806bcbee144d4b1c112019d39a7fe851d0969258) ## [v1.0.4](https://github.com/es-shims/Object.getPrototypeOf/compare/v1.0.3...v1.0.4) - 2022-11-06 ### Commits - [actions] reuse common workflows [`e95bf1e`](https://github.com/es-shims/Object.getPrototypeOf/commit/e95bf1eb1893560f093b06505cf07cbfe2b1b154) - [meta] use `npmignore` to autogenerate an npmignore file [`55214a5`](https://github.com/es-shims/Object.getPrototypeOf/commit/55214a57b03de1e936cea3e98f81b0759081b6e8) - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `safe-publish-latest`, `tape` [`3c93053`](https://github.com/es-shims/Object.getPrototypeOf/commit/3c9305327c22b84dc3aa86b2133d4ea7d1dd61bd) - [actions] update codecov uploader [`0a985b5`](https://github.com/es-shims/Object.getPrototypeOf/commit/0a985b5823d6b2fca42e24fa9c024726ccca16f4) - [actions] update rebase action to use reusable workflow [`c527083`](https://github.com/es-shims/Object.getPrototypeOf/commit/c5270834f09569bdbe824214bc7205942cd67422) - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`9b46f2c`](https://github.com/es-shims/Object.getPrototypeOf/commit/9b46f2c83948b0facf6420a3a797f8ef9d62d569) - [Deps] update `define-properties`, `es-abstract` [`e2d43b8`](https://github.com/es-shims/Object.getPrototypeOf/commit/e2d43b8144acf33c72ac9b29b23033762cc2ca33) ## [v1.0.3](https://github.com/es-shims/Object.getPrototypeOf/compare/v1.0.2...v1.0.3) - 2021-10-03 ### Commits - [Deps] update `es-abstract`, `reflect.getprototypeof` [`cb12850`](https://github.com/es-shims/Object.getPrototypeOf/commit/cb128508cde0a6c70629af5a7a86712605a7a70b) - [actions] update workflows [`f73781d`](https://github.com/es-shims/Object.getPrototypeOf/commit/f73781d235f2ea93dcf8119d68af883e54b8716f) - [Dev Deps] update `@es-shims/api` [`d8a3cb1`](https://github.com/es-shims/Object.getPrototypeOf/commit/d8a3cb118b23cfbd5de7ef94c4c46248aedacfcd) ## [v1.0.2](https://github.com/es-shims/Object.getPrototypeOf/compare/v1.0.1...v1.0.2) - 2021-09-08 ### Commits - [Refactor] remove unnecessary ESM files [`1344709`](https://github.com/es-shims/Object.getPrototypeOf/commit/1344709603a7a6b44aabff062c5942243ebb92df) - [actions] use `node/install` instead of `node/run`; use `codecov` action [`6cf0ea2`](https://github.com/es-shims/Object.getPrototypeOf/commit/6cf0ea27bf38770c5ee3bad661893ce98da710e2) - [meta] `npx auto-changelog` [`db72bad`](https://github.com/es-shims/Object.getPrototypeOf/commit/db72bad0f68c3866486fbc1a0c4a0a6337ef84cf) - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `tape` [`a57eae1`](https://github.com/es-shims/Object.getPrototypeOf/commit/a57eae1f44bc5648644b50cda3258edf701eea68) - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`cfbb551`](https://github.com/es-shims/Object.getPrototypeOf/commit/cfbb5516fa1b05b1ad1cb36f67ecb68d8ba85208) - [readme] add actions and codecov badges [`a8664a2`](https://github.com/es-shims/Object.getPrototypeOf/commit/a8664a2f49b20907acb128236feb74ed2c48f19f) - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog` [`72efb2b`](https://github.com/es-shims/Object.getPrototypeOf/commit/72efb2be16b14a2e1a4a2b8e59832ec4a2e373f8) - [actions] update workflows [`cdb2fe6`](https://github.com/es-shims/Object.getPrototypeOf/commit/cdb2fe6664e6317e92cad847b41181009bc0d52b) - [Dev Deps] update `aud`, `eslint` [`9c702ef`](https://github.com/es-shims/Object.getPrototypeOf/commit/9c702ef95455c772235716ee325b70bf78c03094) - [meta] use `prepublishOnly` script for npm 7+ [`4fe0f9a`](https://github.com/es-shims/Object.getPrototypeOf/commit/4fe0f9a3405e8c03e786740aac97e943bffe9ecc) - [Deps] update `es-abstract` [`8b5a4e8`](https://github.com/es-shims/Object.getPrototypeOf/commit/8b5a4e86747f7afe99169f6c6f6712cb7dfdc24e) - [Deps] update `es-abstract` [`49ac651`](https://github.com/es-shims/Object.getPrototypeOf/commit/49ac6515761a38b7ffd11cfe7cd5b0de6276a85d) - [Deps] update `es-abstract` [`6025f20`](https://github.com/es-shims/Object.getPrototypeOf/commit/6025f2022985b478e83be7603a607f55c7ca4adc) ## [v1.0.1](https://github.com/es-shims/Object.getPrototypeOf/compare/v1.0.0...v1.0.1) - 2021-01-12 ### Commits - [Refactor] `implementation`: use `reflect.getprototypeof` [`087718f`](https://github.com/es-shims/Object.getPrototypeOf/commit/087718fab0481423efe0679a8fd76cefb335e90f) - [Dev Deps] update `eslint`, `tape` [`b37e609`](https://github.com/es-shims/Object.getPrototypeOf/commit/b37e609840a4912474af7b13b0730ffdcd91e9bc) - [Deps] update `call-bind` [`3f64439`](https://github.com/es-shims/Object.getPrototypeOf/commit/3f644397b8aaca63b4d2a5758e821ac642d783e9) ## v1.0.0 - 2021-01-12 ### Commits - [Tests] migrate tests to Github Actions [`93b30a1`](https://github.com/es-shims/Object.getPrototypeOf/commit/93b30a106e59b6db08815854aadf9c3c210bb1b1) - Implementation [`e9a6930`](https://github.com/es-shims/Object.getPrototypeOf/commit/e9a6930ab431ec9ccc4c4e256a68b8c7dfac1994) - [meta] do not publish github action workflow files [`d0bb143`](https://github.com/es-shims/Object.getPrototypeOf/commit/d0bb143fe5a9aee643896b962daf7f2f350331d0) - Tests [`e0d72e0`](https://github.com/es-shims/Object.getPrototypeOf/commit/e0d72e0a4c03a2f180e3784382958100766155c6) - [meta] update .gitignore [`422f05c`](https://github.com/es-shims/Object.getPrototypeOf/commit/422f05c0f8bd0fb0a1e4be2fad72a05d73bc98bd) - [meta] rename package from `getprototypeof` to `object.getprototypeof` [`201d939`](https://github.com/es-shims/Object.getPrototypeOf/commit/201d939e92c8ce8c6705d499cadfe0fa9961e3c1) - readme [`f48eac0`](https://github.com/es-shims/Object.getPrototypeOf/commit/f48eac0867b06deb816b334a32dd2145cfcdf400) - [meta] update package.json [`020d703`](https://github.com/es-shims/Object.getPrototypeOf/commit/020d7030be338262913e4100e954a85601a3741d) - <3 [`4751ac2`](https://github.com/es-shims/Object.getPrototypeOf/commit/4751ac25c20fb7117e7956b123a4cdd7fd944124) - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`240d6e9`](https://github.com/es-shims/Object.getPrototypeOf/commit/240d6e967a05c3f2a854ab894ecbb13abcf7e119) - [meta] add `auto-changelog` [`de87a4d`](https://github.com/es-shims/Object.getPrototypeOf/commit/de87a4df27902979a32b2e27f6d5cb361ee6975f) - Initial commit [`3297015`](https://github.com/es-shims/Object.getPrototypeOf/commit/32970157d24409ca394e4cea35d6d5b9cfe1230a) - Update README.md [`52d680b`](https://github.com/es-shims/Object.getPrototypeOf/commit/52d680b882855abe3db7acc10ba4ad864ba13a18) - [Tests] run `nyc` on all tests [`4e21d00`](https://github.com/es-shims/Object.getPrototypeOf/commit/4e21d001847c5ae4b759898e9481e3803a227e91) - [Refactor] use `call-bind`, `get-intrinsic` instead of `es-abstract` where appropriate; update `es-abstract` [`e1e0d7e`](https://github.com/es-shims/Object.getPrototypeOf/commit/e1e0d7e65ff57624c467fcb6bb94b2a713d328fa) - [Fix] `polyfill`: handle engines where `Object.getPrototypeOf` throws on object-coercible primitives [`99ef2c2`](https://github.com/es-shims/Object.getPrototypeOf/commit/99ef2c2c97ac68e49a6b702492998b92f74d7944) - [actions] add automatic rebasing / merge commit blocking [`fe9c32f`](https://github.com/es-shims/Object.getPrototypeOf/commit/fe9c32fa996704d1263d0cbfce3590f993a7e168) - [Fix] add missing `auto` "exports" entrypoint [`1fa0738`](https://github.com/es-shims/Object.getPrototypeOf/commit/1fa07382650e37927e0d63242f971e3c7f6dc5a3) - [actions] add "Allow Edits" workflow [`1f2f637`](https://github.com/es-shims/Object.getPrototypeOf/commit/1f2f637874631cfd914a3bd598353e62bab0a272) - [Tests] add `npm run lint` [`46e838f`](https://github.com/es-shims/Object.getPrototypeOf/commit/46e838f83a54e6c4b27a327f87cd157d0b8569a2) - [Tests] use shared travis-ci configs [`c02a549`](https://github.com/es-shims/Object.getPrototypeOf/commit/c02a549a70f5335ddce738b9be67a5ed05ff372a) - [readme] remove travis badge [`bd834c2`](https://github.com/es-shims/Object.getPrototypeOf/commit/bd834c25d95d311048457e232423c7b9b1973bf5) - [meta] update license [`6a86d4d`](https://github.com/es-shims/Object.getPrototypeOf/commit/6a86d4da1561f464fa3d93e484248f2e6169a041) - Only apps should have lockfiles [`705b426`](https://github.com/es-shims/Object.getPrototypeOf/commit/705b42605f71b50ea002738a73540bbca9135016) - [actions] switch Automatic Rebase workflow to `pull_request_target` event [`5debc6b`](https://github.com/es-shims/Object.getPrototypeOf/commit/5debc6bf86a8857c989fc9d1e110c67e94dfdecb) - [meta] add `funding` field [`77bb1ce`](https://github.com/es-shims/Object.getPrototypeOf/commit/77bb1ce456183c6c1837840e1c930b2895bb2465) - [Tests] run `es-shim-api` postlint [`c3173fd`](https://github.com/es-shims/Object.getPrototypeOf/commit/c3173fdf79b9036d54f32a8a5698391f11a68eff) - [Deps] update `which-builtin-type` [`21a840b`](https://github.com/es-shims/Object.getPrototypeOf/commit/21a840ba23dcbda0e3e452f431a4b88e3af1ee31) - [meta] add `safe-publish-latest` [`4691320`](https://github.com/es-shims/Object.getPrototypeOf/commit/4691320b92fa9cc0dcb411fb4093e298a04d6cc2) - Update README.md [`f2a5d3d`](https://github.com/es-shims/Object.getPrototypeOf/commit/f2a5d3d18b5d9a3bb718c2d197a2a7ff1bd243e7)