@bevry/ecmascript-versions
Advanced tools
Comparing version 3.1.1 to 3.2.0-next.1627403481.b8051f2d99b7e9a7e59f076a6dc7ebb661464324
@@ -53,3 +53,4 @@ /** | ||
// Add the `ES${year}` versions which are ratified in June | ||
for (let year = 2015, edition = 6; year <= now.getFullYear(); year++, edition++) { | ||
// Certain APIs like Node.green go into the future, so add a year or two. | ||
for (let year = 2015, edition = 6; year <= now.getFullYear() + 2; year++, edition++) { | ||
esVersionsByEdition.set(edition, { | ||
@@ -56,0 +57,0 @@ version: `ES${year}`, |
@@ -72,5 +72,6 @@ /** | ||
// Add the `ES${year}` versions which are ratified in June | ||
// Certain APIs like Node.green go into the future, so add a year or two. | ||
for ( | ||
let year = 2015, edition = 6; | ||
year <= now.getFullYear(); | ||
year <= now.getFullYear() + 2; | ||
year++, edition++ | ||
@@ -77,0 +78,0 @@ ) { |
@@ -53,3 +53,4 @@ /** | ||
// Add the `ES${year}` versions which are ratified in June | ||
for (let year = 2015, edition = 6; year <= now.getFullYear(); year++, edition++) { | ||
// Certain APIs like Node.green go into the future, so add a year or two. | ||
for (let year = 2015, edition = 6; year <= now.getFullYear() + 2; year++, edition++) { | ||
esVersionsByEdition.set(edition, { | ||
@@ -56,0 +57,0 @@ version: `ES${year}`, |
@@ -58,3 +58,4 @@ "use strict"; | ||
// Add the `ES${year}` versions which are ratified in June | ||
for (let year = 2015, edition = 6; year <= now.getFullYear(); year++, edition++) { | ||
// Certain APIs like Node.green go into the future, so add a year or two. | ||
for (let year = 2015, edition = 6; year <= now.getFullYear() + 2; year++, edition++) { | ||
esVersionsByEdition.set(edition, { | ||
@@ -61,0 +62,0 @@ version: `ES${year}`, |
# History | ||
## v3.2.0 2021 July 28 | ||
- Go two years into the future for prepping ECMAScript version information, as certain APIs like Node.green go into the future, as used by [`@bevry/nodejs-ecmascript-compatibility`](https://github.com/bevry/nodejs-ecmascript-compatibility) | ||
## v3.1.1 2021 July 27 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "@bevry/ecmascript-versions", | ||
"version": "3.1.1", | ||
"version": "3.2.0-next.1627403481.b8051f2d99b7e9a7e59f076a6dc7ebb661464324", | ||
"description": "Get all ECMAScript versions, or the ECMAScript version that was ratified on a specific date.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/bevry/es-versions", |
@@ -91,3 +91,3 @@ <!-- TITLE/ --> | ||
<script type="module"> | ||
import * as pkg from '//cdn.skypack.dev/@bevry/ecmascript-versions@^3.1.1' | ||
import * as pkg from '//cdn.skypack.dev/@bevry/ecmascript-versions@^3.2.0' | ||
</script> | ||
@@ -100,3 +100,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//unpkg.com/@bevry/ecmascript-versions@^3.1.1' | ||
import * as pkg from '//unpkg.com/@bevry/ecmascript-versions@^3.2.0' | ||
</script> | ||
@@ -109,3 +109,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//dev.jspm.io/@bevry/ecmascript-versions@3.1.1' | ||
import * as pkg from '//dev.jspm.io/@bevry/ecmascript-versions@3.2.0' | ||
</script> | ||
@@ -112,0 +112,0 @@ ``` |
@@ -72,5 +72,6 @@ /** | ||
// Add the `ES${year}` versions which are ratified in June | ||
// Certain APIs like Node.green go into the future, so add a year or two. | ||
for ( | ||
let year = 2015, edition = 6; | ||
year <= now.getFullYear(); | ||
year <= now.getFullYear() + 2; | ||
year++, edition++ | ||
@@ -77,0 +78,0 @@ ) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62261
1032
1