charcode-is-valid-xml-name-character 2.2.6 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,13 +3,19 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # 2.2.0 (2022-08-12)
6
+ ## 3.0.0 (2022-12-01)
7
+
8
+ ### BREAKING CHANGES
9
+
10
+ - Minimum supported Node version is v14.18; we're dropping v12 support
11
+
12
+ ## 2.2.0 (2022-08-12)
7
13
 
8
14
  ### Features
9
15
 
10
16
  - export types ([11b5fb9](https://github.com/codsen/codsen/commit/11b5fb936ce20e0a77c3a09806773e1cd7695c50))
11
17
 
12
- # 2.1.0 (2022-04-11)
18
+ ## 2.1.0 (2022-04-11)
13
19
 
14
20
  ### Features
15
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "charcode-is-valid-xml-name-character",
3
- "version": "2.2.6",
3
+ "version": "3.0.1",
4
4
  "description": "Does a given character belong to XML spec's \"Production 4 OR 4a\" type (is acceptable for XML element's name)",
5
5
  "keywords": [
6
6
  "4",
@@ -39,26 +39,26 @@
39
39
  },
40
40
  "types": "types/index.d.ts",
41
41
  "scripts": {
42
- "build": "node '../../ops/scripts/esbuild.js' && yarn run dts",
42
+ "build": "node '../../ops/scripts/esbuild.js' && npm run dts",
43
43
  "cjs-off": "exit 0",
44
44
  "cjs-on": "exit 0",
45
- "dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts",
46
- "devtest": "c8 yarn run unit && yarn run examples && yarn run lint",
47
- "dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write",
45
+ "dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
46
+ "devtest": "c8 npm run unit && npm run examples && npm run lint",
47
+ "dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --loglevel 'silent'",
48
48
  "examples": "node '../../ops/scripts/run-examples.js'",
49
- "lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
50
- "letspublish": "yarn publish || :",
49
+ "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
50
+ "letspublish": "npm publish || :",
51
51
  "lint": "eslint . --ext .js --ext .ts --fix",
52
52
  "perf": "node perf/check.js",
53
- "prepare": "echo 'ready'",
53
+ "prep": "echo 'ready'",
54
54
  "prettier": "prettier",
55
- "prettier:format": "prettier --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern",
56
- "pretest": "yarn run lect && yarn run build",
57
- "test": "yarn run devtest",
55
+ "prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --loglevel 'silent'",
56
+ "pretest": "npm run lect && npm run build",
57
+ "test": "npm run devtest",
58
58
  "unit": "uvu test"
59
59
  },
60
60
  "engines": {
61
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
61
+ "node": ">=14.18.0"
62
62
  },
63
63
  "c8": {
64
64
  "check-coverage": true,
@@ -75,6 +75,6 @@
75
75
  }
76
76
  },
77
77
  "dependencies": {
78
- "ranges-is-index-within": "^3.2.6"
78
+ "ranges-is-index-within": "^4.0.1"
79
79
  }
80
80
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * @name charcode-is-valid-xml-name-character
3
- * @fileoverview Does a given character belong to XML spec's "Production 4 OR 4a" type (is acceptable for XML element's name)
4
- * @version 2.2.6
5
- * @author Roy Revelt, Codsen Ltd
6
- * @license MIT
7
- * {@link https://codsen.com/os/charcode-is-valid-xml-name-character/}
8
- */
9
-
10
- import{isIndexWithin as o}from"ranges-is-index-within";var a=[[58,58],[65,90],[95,95],[192,214],[216,246],[248,767],[880,893],[895,8191],[8204,8205],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],s=[[45,45],[46,46],[48,57],[58,58],[65,90],[95,95],[183,183],[192,214],[216,246],[248,767],[768,879],[880,893],[895,8191],[8204,8205],[8255,8256],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],t=[[97,122]],e={inclusiveRangeEnds:!0,skipIncomingRangeSorting:!0};function i(n){return o(n.codePointAt(0),t,e)||o(n.codePointAt(0),a,e)}function c(n){return o(n.codePointAt(0),t,e)||o(n.codePointAt(0),s,e)}export{i as isProduction4,c as isProduction4a,i as validFirstChar,c as validSecondCharOnwards};
@@ -1,18 +0,0 @@
1
- /**
2
- * @name charcode-is-valid-xml-name-character
3
- * @fileoverview Does a given character belong to XML spec's "Production 4 OR 4a" type (is acceptable for XML element's name)
4
- * @version 2.2.6
5
- * @author Roy Revelt, Codsen Ltd
6
- * @license MIT
7
- * {@link https://codsen.com/os/charcode-is-valid-xml-name-character/}
8
- */
9
-
10
- "use strict";var charcodeIsValidXmlNameCharacter=(()=>{var t=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var c=(n,e,r)=>e in n?t(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,u=(n,e)=>{for(var r in e||(e={}))g.call(e,r)&&c(n,r,e[r]);if(d)for(var r of d(e))f.call(e,r)&&c(n,r,e[r]);return n};var p=(n,e)=>{for(var r in e)t(n,r,{get:e[r],enumerable:!0})},R=(n,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of b(e))!g.call(n,a)&&a!==r&&t(n,a,{get:()=>e[a],enumerable:!(o=l(e,a))||o.enumerable});return n};var h=n=>R(t({},"__esModule",{value:!0}),n);var P={};p(P,{isProduction4:()=>x,isProduction4a:()=>A,validFirstChar:()=>x,validSecondCharOnwards:()=>A});var v={inclusiveRangeEnds:!1,returnMatchedRangeInsteadOfTrue:!1};function s(n,e,r){let o=u(u({},v),r);if(!Number.isInteger(n))throw new Error(`ranges-is-index-within: [THROW_ID_01] the first input argument should be string index, a natural number (or zero). It was given as ${n} (type ${typeof n})`);return Array.isArray(e)?o.returnMatchedRangeInsteadOfTrue?e.find(a=>o.inclusiveRangeEnds?n>=a[0]&&n<=a[1]:n>a[0]&&n<a[1])||!1:e.some(a=>o.inclusiveRangeEnds?n>=a[0]&&n<=a[1]:n>a[0]&&n<a[1]):!1}var I=[[58,58],[65,90],[95,95],[192,214],[216,246],[248,767],[880,893],[895,8191],[8204,8205],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],y=[[45,45],[46,46],[48,57],[58,58],[65,90],[95,95],[183,183],[192,214],[216,246],[248,767],[768,879],[880,893],[895,8191],[8204,8205],[8255,8256],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],m=[[97,122]],i={inclusiveRangeEnds:!0,skipIncomingRangeSorting:!0};function x(n){return s(n.codePointAt(0),m,i)||s(n.codePointAt(0),I,i)}function A(n){return s(n.codePointAt(0),m,i)||s(n.codePointAt(0),y,i)}return h(P);})();
11
- /**
12
- * @name ranges-is-index-within
13
- * @fileoverview Checks if index is within any of the given string index ranges
14
- * @version 3.2.6
15
- * @author Roy Revelt, Codsen Ltd
16
- * @license MIT
17
- * {@link https://codsen.com/os/ranges-is-index-within/}
18
- */