Skip to content

Commit

Permalink
feat: compatibility level now at ES5
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed May 21, 2020
1 parent 5e4ebce commit de0b7b0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ Use it wherever and however you want - node.js or webpack, CJS or ESM modules!
**INSTALLATION NOTE:**
This lib is written in ES6+ and delivering with both, transpiled and untranspiled versions:

- `main` field of `package.json` is pointing to transpiled ES3 version with CJS modules resolution;
- `module` field is pointing to transpiled ES3 version with ES modules resolution;
- `main` field of `package.json` is pointing to transpiled ES5 version with CJS modules resolution;
- `module` field is pointing to transpiled ES5 version with ES modules resolution;
- `esnext` field is pointing to the ES6+ version with ES modules resolution;

Depending on your targets you may have to use [Webpack](https://webpack.js.org/) and/or
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,24 @@
"license": "MIT",
"dependencies": {},
"devDependencies": {
"@semantic-release/changelog": "^5.0.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/npm": "^7.0.3",
"@types/jest": "^25.1.2",
"@xobotyi/eslint-config": "^1.3.1",
"@semantic-release/npm": "^7.0.5",
"@types/jest": "^25.2.3",
"@xobotyi/eslint-config": "^1.9.0",
"@xobotyi/preset-typescript": "^1.0.0",
"eslint": "^7.0.0",
"husky": "^4.2.3",
"husky": "^4.2.5",
"jest": "^26.0.1",
"lint-staged": "^10.0.7",
"prettier": "^2.0.1",
"lint-staged": "^10.2.4",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"rollup": "^2.0.3",
"rollup-plugin-terser": "^5.2.0",
"rollup-plugin-typescript2": "^0.27.0",
"semantic-release": "^17.0.3",
"rollup": "^2.10.5",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.27.1",
"semantic-release": "^17.0.7",
"ts-jest": "^26.0.0",
"typescript": "^3.7.5"
"typescript": "^3.9.3"
},
"scripts": {
"lint": "eslint ./{src,tests}/**/*.ts ./*.{ts,js}",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = [
tsconfigOverride: {
compilerOptions: {
module: 'esnext',
target: 'es3',
target: 'es5',
},
},
}),
Expand Down
24 changes: 12 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@
dependencies:
any-observable "^0.3.0"

"@semantic-release/changelog@^5.0.0":
"@semantic-release/changelog@^5.0.1":
version "5.0.1"
resolved "https://registry.yarnpkg.com/@semantic-release/changelog/-/changelog-5.0.1.tgz#50a84b63e5d391b7debfe021421589fa2bcdafe4"
integrity sha512-unvqHo5jk4dvAf2nZ3aw4imrlwQ2I50eVVvq9D47Qc3R+keNqepx1vDYwkjF8guFXnOYaYcR28yrZWno1hFbiw==
Expand Down Expand Up @@ -632,7 +632,7 @@
p-retry "^4.0.0"
url-join "^4.0.0"

"@semantic-release/npm@^7.0.0", "@semantic-release/npm@^7.0.3":
"@semantic-release/npm@^7.0.0", "@semantic-release/npm@^7.0.5":
version "7.0.5"
resolved "https://registry.yarnpkg.com/@semantic-release/npm/-/npm-7.0.5.tgz#61c45691abb863f6939cca6aac958d3c22508632"
integrity sha512-D+oEmsx9aHE1q806NFQwSC9KdBO8ri/VO99eEz0wWbX2jyLqVyWr7t0IjKC8aSnkkQswg/4KN/ZjfF6iz1XOpw==
Expand Down Expand Up @@ -756,7 +756,7 @@
"@types/istanbul-lib-coverage" "*"
"@types/istanbul-lib-report" "*"

"@types/jest@^25.1.2":
"@types/jest@^25.2.3":
version "25.2.3"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-25.2.3.tgz#33d27e4c4716caae4eced355097a47ad363fdcaf"
integrity sha512-JXc1nK/tXHiDhV55dvfzqtmP4S3sy3T3ouV2tkViZgxY/zeUkcpQcQPGRlgF4KmWzWW5oiWYSZwtCB+2RsE4Fw==
Expand Down Expand Up @@ -859,7 +859,7 @@
semver "^7.3.2"
tsutils "^3.17.1"

"@xobotyi/eslint-config@^1.3.1":
"@xobotyi/eslint-config@^1.9.0":
version "1.9.0"
resolved "https://registry.yarnpkg.com/@xobotyi/eslint-config/-/eslint-config-1.9.0.tgz#d4dc23ae8983251feca8a832c38cf5a91b8400ec"
integrity sha512-7ZBkAPZEWEfyNwmPXV6swp8uawMvcZ+aSNPOcWvcYgxMZVlRqoIMjKfJ/mIi7zJxqdyFVRF/VqlISlN89m/z7g==
Expand Down Expand Up @@ -3362,7 +3362,7 @@ humanize-ms@^1.2.1:
dependencies:
ms "^2.0.0"

husky@^4.2.3:
husky@^4.2.5:
version "4.2.5"
resolved "https://registry.yarnpkg.com/husky/-/husky-4.2.5.tgz#2b4f7622673a71579f901d9885ed448394b5fa36"
integrity sha512-SYZ95AjKcX7goYVZtVZF2i6XiZcHknw50iXvY7b0MiGoj5RwdgRQNEHdb+gPDPCXKlzwrybjFjkL6FOj8uRhZQ==
Expand Down Expand Up @@ -4634,7 +4634,7 @@ lines-and-columns@^1.1.6:
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00"
integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=

lint-staged@^10.0.7:
lint-staged@^10.2.4:
version "10.2.4"
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-10.2.4.tgz#0ed5d1cf06bdac0d3fbb003931bb6df3771fbf42"
integrity sha512-doTMGKXQAT34c3S3gwDrTnXmCZp/z1/92D8suPqqh755sKPT18ew1NoPNHxJdrvv1D4WrJ7CEnx79Ns3EdEFbg==
Expand Down Expand Up @@ -6101,7 +6101,7 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@^2.0.1:
prettier@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4"
integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==
Expand Down Expand Up @@ -6643,7 +6643,7 @@ rimraf@^3.0.0, rimraf@^3.0.2:
dependencies:
glob "^7.1.3"

rollup-plugin-terser@^5.2.0:
rollup-plugin-terser@^5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-5.3.0.tgz#9c0dd33d5771df9630cd027d6a2559187f65885e"
integrity sha512-XGMJihTIO3eIBsVGq7jiNYOdDMb3pVxuzY0uhOE/FM4x/u9nQgr3+McsjzqBn3QfHIpNSZmFnpoKAwHBEcsT7g==
Expand All @@ -6654,7 +6654,7 @@ rollup-plugin-terser@^5.2.0:
serialize-javascript "^2.1.2"
terser "^4.6.2"

rollup-plugin-typescript2@^0.27.0:
rollup-plugin-typescript2@^0.27.1:
version "0.27.1"
resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.27.1.tgz#4f27193408a8f040139eed3e3db7b0c7f3668200"
integrity sha512-RJl77Bbj1EunAQDC3dK/O2HWuSUX3oJbRGzyLoS5o9W4Hs1Nix3Gavqj1Lzs5Y6Ff4H2xXfmZ1WWUQCYocSbzQ==
Expand All @@ -6672,7 +6672,7 @@ rollup-pluginutils@^2.8.2:
dependencies:
estree-walker "^0.6.1"

rollup@^2.0.3:
rollup@^2.10.5:
version "2.10.5"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.10.5.tgz#a2e6735fbcbd64453f8aa5d7b5ec1b421974f92c"
integrity sha512-05WRM/tjmPYwhOBvm/G9Qwa/HnAqn0TK0XxLDLQzoM4XdSmKjPBvhBl+U+Q/C6VJsucljyTQjGkZD503mjbPQg==
Expand Down Expand Up @@ -6761,7 +6761,7 @@ saxes@^5.0.0:
dependencies:
xmlchars "^2.2.0"

semantic-release@^17.0.3:
semantic-release@^17.0.7:
version "17.0.7"
resolved "https://registry.yarnpkg.com/semantic-release/-/semantic-release-17.0.7.tgz#03792bf6e1a9ad2353dfd0da6a5d5511fa672b06"
integrity sha512-F6FzJI1yiGavzCTXir4yPthK/iozZPJ4myUYndiHhSHbmOcCSJ2m7V+P6sFwVpDpQKQp1Q31M68sTJ/Q/27Bow==
Expand Down Expand Up @@ -7703,7 +7703,7 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@^3.7.5:
typescript@^3.9.3:
version "3.9.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.3.tgz#d3ac8883a97c26139e42df5e93eeece33d610b8a"
integrity sha512-D/wqnB2xzNFIcoBG9FG8cXRDjiqSTbG2wd8DMZeQyJlP1vfTkIxH4GKveWaEBYySKIg+USu+E+EDIR47SqnaMQ==
Expand Down

0 comments on commit de0b7b0

Please sign in to comment.