@lite-v3/polyfills
Advanced tools
Comparing version 0.1.0 to 0.1.1-alpha.1
@@ -1,39 +0,33 @@ | ||
# Changelog | ||
### Changelog | ||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
This file is automatically generated by `@lite-v3/changlogger`. Do not intentionally change this manually! | ||
### 0.0.9 (2021-10-19) | ||
#### @lite-v3/polyfills@0.1.1 | ||
> 14 October 2022 | ||
### Features | ||
- fix: fix incorrect cond [`#2291`](https://github.com/tokopedia/wpe-lite-packages/pull/2291)(by Miqdad) | ||
- fix: fix incorrect cond (#2291) [`1eb518c`](https://github.com/tokopedia/wpe-lite-packages/commit/1eb518cd8944bc22012057498f062494518c6b2b)(by Miqdad) | ||
* @lite-v3/polyfills ([#3](https://github.com/tokopedia/wpe-lite-packages/issues/3)) ([5919596](https://github.com/tokopedia/wpe-lite-packages/commit/591959617f30c0d351ebe8a1557fb7b7874bc482)) | ||
* add more public helpers ([#28](https://github.com/tokopedia/wpe-lite-packages/issues/28)) ([c8f0c52](https://github.com/tokopedia/wpe-lite-packages/commit/c8f0c5259f2e1b95d220ebabf4532b53a960e681)) | ||
* changelog ([#9](https://github.com/tokopedia/wpe-lite-packages/issues/9)) ([9cf759b](https://github.com/tokopedia/wpe-lite-packages/commit/9cf759ba1e39581b74bb45f9ef2536488e3233a1)) | ||
* eslint-config-tokopedia-lite ([#19](https://github.com/tokopedia/wpe-lite-packages/issues/19)) ([33cfe5b](https://github.com/tokopedia/wpe-lite-packages/commit/33cfe5ba44dab4a2f79415d27999c6117dc94086)) | ||
* eslint-plugin-tokopedia-lite ([#11](https://github.com/tokopedia/wpe-lite-packages/issues/11)) ([a86cf01](https://github.com/tokopedia/wpe-lite-packages/commit/a86cf01c53e28ad382d5c616704231eae1b0771c)) | ||
* **jest-coverage-reporter:** init commit -eslint ([#4](https://github.com/tokopedia/wpe-lite-packages/issues/4)) ([5b08b28](https://github.com/tokopedia/wpe-lite-packages/commit/5b08b28d542781676063f88a63cde111336ab068)) | ||
#### @lite-v3/polyfills@0.1.0 | ||
> 30 June 2022 | ||
### Bug Fixes | ||
* repace lodash/get to lodash.get ([#16](https://github.com/tokopedia/wpe-lite-packages/issues/16)) ([ec499fd](https://github.com/tokopedia/wpe-lite-packages/commit/ec499fd49b08d4e0f8e202903df6d650be7e121c)) | ||
### [0.0.9](https://github.com/tokopedia/wpe-lite-packages/compare/@lite-v3/polyfills@0.0.9...@lite-v3/polyfills@0.0.9) (2021-10-19) | ||
### 0.0.9 (2021-10-19) | ||
### Features | ||
* @lite-v3/polyfills ([#3](https://github.com/tokopedia/wpe-lite-packages/issues/3)) ([5919596](https://github.com/tokopedia/wpe-lite-packages/commit/591959617f30c0d351ebe8a1557fb7b7874bc482)) | ||
* add more public helpers ([#28](https://github.com/tokopedia/wpe-lite-packages/issues/28)) ([c8f0c52](https://github.com/tokopedia/wpe-lite-packages/commit/c8f0c5259f2e1b95d220ebabf4532b53a960e681)) | ||
* changelog ([#9](https://github.com/tokopedia/wpe-lite-packages/issues/9)) ([9cf759b](https://github.com/tokopedia/wpe-lite-packages/commit/9cf759ba1e39581b74bb45f9ef2536488e3233a1)) | ||
* eslint-config-tokopedia-lite ([#19](https://github.com/tokopedia/wpe-lite-packages/issues/19)) ([33cfe5b](https://github.com/tokopedia/wpe-lite-packages/commit/33cfe5ba44dab4a2f79415d27999c6117dc94086)) | ||
* eslint-plugin-tokopedia-lite ([#11](https://github.com/tokopedia/wpe-lite-packages/issues/11)) ([a86cf01](https://github.com/tokopedia/wpe-lite-packages/commit/a86cf01c53e28ad382d5c616704231eae1b0771c)) | ||
* **jest-coverage-reporter:** init commit -eslint ([#4](https://github.com/tokopedia/wpe-lite-packages/issues/4)) ([5b08b28](https://github.com/tokopedia/wpe-lite-packages/commit/5b08b28d542781676063f88a63cde111336ab068)) | ||
### Bug Fixes | ||
* repace lodash/get to lodash.get ([#16](https://github.com/tokopedia/wpe-lite-packages/issues/16)) ([ec499fd](https://github.com/tokopedia/wpe-lite-packages/commit/ec499fd49b08d4e0f8e202903df6d650be7e121c)) | ||
- feat: @lite-v3/polyfills [`#3`](https://github.com/tokopedia/wpe-lite-packages/pull/3)(by Miqdad A. Fawwaz) | ||
- feat: changelog [`#9`](https://github.com/tokopedia/wpe-lite-packages/pull/9)(by Irfan Maulana (@mazipan)) | ||
- feat: eslint-config-tokopedia-lite [`#19`](https://github.com/tokopedia/wpe-lite-packages/pull/19)(by Miqdad A. Fawwaz) | ||
- ci: disable for now [`#27`](https://github.com/tokopedia/wpe-lite-packages/pull/27)(by Irfan Maulana (@mazipan)) | ||
- fix: swcrc [`#36`](https://github.com/tokopedia/wpe-lite-packages/pull/36)(by Irfan Maulana (@mazipan)) | ||
- chore: downgrade eslint-plugin-jest version [`#39`](https://github.com/tokopedia/wpe-lite-packages/pull/39)(by Miqdad A. Fawwaz) | ||
- refactor(test): improve lite-testing [`#132`](https://github.com/tokopedia/wpe-lite-packages/pull/132)(by Muhammad A Faishal) | ||
- ci(core): rewrite pr_check and publish script [`#213`](https://github.com/tokopedia/wpe-lite-packages/pull/213)(by Irfan Maulana (@mazipan)) | ||
- chore: upgrade core-js [`#1481`](https://github.com/tokopedia/wpe-lite-packages/pull/1481)(by Miqdad) | ||
- feat: @lite-v3/polyfills (#3) [`5919596`](https://github.com/tokopedia/wpe-lite-packages/commit/591959617f30c0d351ebe8a1557fb7b7874bc482)(by Miqdad A. Fawwaz) | ||
- refactor(test): improve lite-testing (#132) [`9171706`](https://github.com/tokopedia/wpe-lite-packages/commit/9171706a6b0945a508cc6a3638d2bf82743dd775)(by Muhammad A Faishal) | ||
- feat: changelog (#9) [`9cf759b`](https://github.com/tokopedia/wpe-lite-packages/commit/9cf759ba1e39581b74bb45f9ef2536488e3233a1)(by Irfan Maulana (@mazipan)) | ||
- ci: disable for now (#27) [`69d64ba`](https://github.com/tokopedia/wpe-lite-packages/commit/69d64ba0da855ee1d68b3796d2ec4b02b500c3eb)(by Irfan Maulana (@mazipan)) | ||
- feat: eslint-config-tokopedia-lite (#19) [`33cfe5b`](https://github.com/tokopedia/wpe-lite-packages/commit/33cfe5ba44dab4a2f79415d27999c6117dc94086)(by Miqdad A. Fawwaz) | ||
- chore: upgrade core-js (#1481) [`1702575`](https://github.com/tokopedia/wpe-lite-packages/commit/1702575c6a6e5abc9b177885d332842d808f3787)(by Miqdad) | ||
- fix: swcrc (#36) [`42af408`](https://github.com/tokopedia/wpe-lite-packages/commit/42af408920d99158738a56678db53b6c5d7608c3)(by Irfan Maulana (@mazipan)) | ||
- ci(core): rewrite pr_check and publish script (#213) [`7023521`](https://github.com/tokopedia/wpe-lite-packages/commit/70235215402af831bdac6981ab856b92c837118f)(by Irfan Maulana (@mazipan)) | ||
- chore: downgrade eslint-plugin-jest version (#39) [`59d2612`](https://github.com/tokopedia/wpe-lite-packages/commit/59d2612318f7b727901a8fc109c7abe6389325e3)(by Miqdad A. Fawwaz) |
@@ -50,7 +50,7 @@ import presetPolyfills from './internals/presets'; | ||
if (typeof callback === undefined) { | ||
if (typeof callback === 'undefined') { | ||
throw new Error('Callback argument is required.'); | ||
} | ||
if (typeof condition === undefined) { | ||
if (typeof condition === 'undefined') { | ||
throw new Error('Require to define condition.'); | ||
@@ -57,0 +57,0 @@ } |
{ | ||
"name": "@lite-v3/polyfills", | ||
"version": "0.1.0", | ||
"version": "0.1.1-alpha.1", | ||
"description": "A standard polyfill library for tokopedia web services", | ||
@@ -18,3 +18,3 @@ "sideEffects": false, | ||
"dependencies": { | ||
"core-js": "^3.23.3", | ||
"core-js": "^3.31.0", | ||
"intersection-observer": "0.12.0", | ||
@@ -30,8 +30,8 @@ "raf": "^3.4.1", | ||
"engines": { | ||
"node": ">= 14.17" | ||
"node": ">=16.19 <17", | ||
"pnpm": ">=7.24 <8" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"readme": "# @lite-v3/polyfills\n\nA standard polyfill library for tokopedia web services\n\n![By Tokopedia](https://img.shields.io/badge/WPE-Tokopedia-brightgreen.svg?style=flat-square) [![Version][npm-badge]][npm]\n\nThis module is only needed for [webpack 4+](https://github.com/webpack).\n\n## Prerequisites\n\n```\nWebpack 4+\n```\n\n## Install\n\n```sh\n# Using npm\nnpm install @lite-v3/polyfills\n\n# Using yarn\nyarn add @lite-v3/polyfills\n\n# Using pnpm\npnpm install @lite-v3/polyfills\n```\n\n## Usage\n\nAdd the following to your entry client file:\n\n```js\nimport requirePolyfills, { definePolyfills } from '@lite-v3/polyfills';\n\nrequirePolyfills(condition, function () {\n runYourService();\n});\n```\n\nor if you have additional polyfills\n\n```js\nimport requirePolyfills from '@lite-v3/polyfills';\n\nconst customPolyfills = [\n {\n test: !(window.fetch || window.self.fetch),\n load: () => {\n return new Promise(resolve => {\n resolve(import(/* webpackChunkName: \"unfetch-polyfill\" */ 'unfetch/polyfill/index'));\n });\n },\n },\n];\n\nrequirePolyfills(condition, definePolyfills(customPolyfills), function () {\n runYourService();\n});\n```\n\n## API\n\n### requirePolyfills(condition, callback)\n\n#### parameter\n\ncondition: `Boolean`\ncallback: `() => void`\n\n### definePolyfills(polyfills)\n\n#### parameter\n\npolyfills: `{ test: boolean, load: () => Promise<unknown> }[]}`\n\n---\n\nCode By WPE Team @Tokopedia\n\n[npm]: https://www.npmjs.org/package/@lite-v3/polyfills\n[npm-badge]: https://img.shields.io/npm/v/@lite-v3/polyfills.svg?style=flat-square\n" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
15327
3
1
Updatedcore-js@^3.31.0