micromark-util-decode-numeric-character-reference
Advanced tools
Comparing version 1.1.0 to 2.0.0
@@ -1,3 +0,2 @@ | ||
import {codes} from 'micromark-util-symbol/codes.js' | ||
import {values} from 'micromark-util-symbol/values.js' | ||
import {codes, values} from 'micromark-util-symbol' | ||
@@ -29,11 +28,11 @@ /** | ||
// Lone high surrogates and low surrogates. | ||
(code > 55295 && code < 57344) || | ||
(code > 55_295 && code < 57_344) || | ||
// Noncharacters. | ||
(code > 64975 && code < 65008) || | ||
(code > 64_975 && code < 65_008) || | ||
/* eslint-disable no-bitwise */ | ||
(code & 65535) === 65535 || | ||
(code & 65535) === 65534 || | ||
(code & 65_535) === 65_535 || | ||
(code & 65_535) === 65_534 || | ||
/* eslint-enable no-bitwise */ | ||
// Out of range | ||
code > 1114111 | ||
code > 1_114_111 | ||
) { | ||
@@ -40,0 +39,0 @@ return values.replacementCharacter |
10
index.js
@@ -25,9 +25,9 @@ /** | ||
// Lone high surrogates and low surrogates. | ||
(code > 55295 && code < 57344) || | ||
(code > 55_295 && code < 57_344) || | ||
// Noncharacters. | ||
(code > 64975 && code < 65008) /* eslint-disable no-bitwise */ || | ||
(code & 65535) === 65535 || | ||
(code & 65535) === 65534 /* eslint-enable no-bitwise */ || | ||
(code > 64_975 && code < 65_008) /* eslint-disable no-bitwise */ || | ||
(code & 65_535) === 65_535 || | ||
(code & 65_535) === 65_534 /* eslint-enable no-bitwise */ || | ||
// Out of range | ||
code > 1114111 | ||
code > 1_114_111 | ||
) { | ||
@@ -34,0 +34,0 @@ return '\uFFFD' |
{ | ||
"name": "micromark-util-decode-numeric-character-reference", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "micromark utility to decode numeric character references", | ||
@@ -34,4 +34,2 @@ "license": "MIT", | ||
"type": "module", | ||
"main": "index.js", | ||
"types": "dev/index.d.ts", | ||
"files": [ | ||
@@ -43,3 +41,2 @@ "dev/", | ||
"exports": { | ||
"types": "./dev/index.d.ts", | ||
"development": "./dev/index.js", | ||
@@ -49,3 +46,3 @@ "default": "./index.js" | ||
"dependencies": { | ||
"micromark-util-symbol": "^1.0.0" | ||
"micromark-util-symbol": "^2.0.0" | ||
}, | ||
@@ -55,9 +52,3 @@ "scripts": { | ||
}, | ||
"xo": false, | ||
"typeCoverage": { | ||
"atLeast": 100, | ||
"detail": true, | ||
"strict": true, | ||
"ignoreCatch": true | ||
} | ||
"xo": false | ||
} |
@@ -102,8 +102,11 @@ # micromark-util-decode-numeric-character-reference | ||
Projects maintained by the unified collective are compatible with all maintained | ||
Projects maintained by the unified collective are compatible with maintained | ||
versions of Node.js. | ||
As of now, that is Node.js 16+. | ||
Our projects sometimes work with older versions, but this is not guaranteed. | ||
This package works with `micromark` version 3+. | ||
When we cut a new major release, we drop support for unmaintained versions of | ||
Node. | ||
This means we try to keep the current release line, | ||
`micromark-util-decode-numeric-character-reference@^2`, compatible with | ||
Node.js 16. | ||
This package works with `micromark@^3`. | ||
@@ -110,0 +113,0 @@ ## Security |
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
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
185
9853
111
+ Addedmicromark-util-symbol@2.0.0(transitive)
- Removedmicromark-util-symbol@1.1.0(transitive)
Updatedmicromark-util-symbol@^2.0.0