charcode-is-valid-xml-name-character 3.1.3 → 3.2.0

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,11 +3,22 @@
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
- ## 3.1.0 (2025-10-15)
6
+ ## 3.2.0 (2026-08-19)
7
+
8
+ ### Bug Fixes
9
+
10
+ - resolve review findings REV-004 through REV-007 ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
11
+ - retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
7
12
 
8
13
  ### Features
9
14
 
10
- - if value to be added is a number, keep it as is, don't stringify ([ce3e1a5](https://github.com/codsen/codsen/commit/ce3e1a525998ca3c0abf0142affef95b14cd1990))
15
+ - add codsen-glob and migrate glob consumers ([5595a2b](https://github.com/codsen/codsen/commit/5595a2b267eaa6cb60072d037aef00b7a28edd42))
16
+ - refresh the tooling and generate with the latest dependencies ([781f802](https://github.com/codsen/codsen/commit/781f802911066a82a4533b0e5a3fcbd742d0dd83))
17
+
18
+ ### Reverts
19
+
20
+ - Revert "Merge pull request #128 from codsen/release/npm-32198404552-1" ([5baeeaa](https://github.com/codsen/codsen/commit/5baeeaaa677b86f1eaa6396cadf3aea32b06416e)), closes [#128](https://github.com/codsen/codsen/issues/128)
21
+ - Revert "Merge pull request #127 from codsen/release/npm-32194020886-1" ([5f1e94d](https://github.com/codsen/codsen/commit/5f1e94deef910ce735266b16aeee08a76de7a862)), closes [#127](https://github.com/codsen/codsen/issues/127)
11
22
 
12
23
  ## 3.0.0 (2022-12-01)
13
24
 
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright © 2010-2025 Roy Revelt and other contributors
3
+ Copyright © 2010-2026 Roy Revelt and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -32,33 +32,20 @@ npm i charcode-is-valid-xml-name-character
32
32
  ## Quick Take
33
33
 
34
34
  ```js
35
- import { strict as assert } from "assert";
35
+ import { strict as assert } from "node:assert";
36
36
 
37
- import {
38
- isProduction4,
39
- isProduction4a,
40
- validFirstChar,
41
- validSecondCharOnwards,
42
- } from "charcode-is-valid-xml-name-character";
37
+ import { validFirstChar } from "charcode-is-valid-xml-name-character";
43
38
 
44
39
  // Spec: https://www.w3.org/TR/REC-xml/#NT-NameStartChar
45
40
 
46
- assert.equal(isProduction4("Z"), true);
47
- assert.equal(isProduction4("?"), false);
48
-
49
- assert.equal(isProduction4a("?"), false);
50
- assert.equal(isProduction4a("-"), true);
51
-
52
41
  assert.equal(validFirstChar("a"), true);
53
42
  assert.equal(validFirstChar("1"), false);
54
-
55
- assert.equal(validSecondCharOnwards("a"), true);
56
- assert.equal(validSecondCharOnwards("?"), false);
57
43
  ```
58
44
 
45
+
59
46
  ## Documentation
60
47
 
61
- Please [visit codsen.com](https://codsen.com/os/charcode-is-valid-xml-name-character/) for a full description of the API.
48
+ Please [visit codsen.com](https://codsen.com/os/charcode-is-valid-xml-name-character/) for a full description of the API. If you’re looking for the **Changelog**, it’s [here](https://github.com/codsen/codsen/blob/main/packages/charcode-is-valid-xml-name-character/CHANGELOG.md).
62
49
 
63
50
  ## Contributing
64
51
 
@@ -68,6 +55,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
68
55
 
69
56
  MIT License
70
57
 
71
- Copyright © 2010-2025 Roy Revelt and other contributors
58
+ Copyright © 2010-2026 Roy Revelt and other contributors
72
59
 
73
60
  <p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @name charcode-is-valid-xml-name-character
3
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 3.1.3
4
+ * @version 3.2.0
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/charcode-is-valid-xml-name-character/}
@@ -1,17 +1,17 @@
1
1
  /**
2
2
  * @name charcode-is-valid-xml-name-character
3
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 3.1.3
4
+ * @version 3.2.0
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/charcode-is-valid-xml-name-character/}
8
8
  */
9
9
 
10
- "use strict";var charcodeIsValidXmlNameCharacter=(()=>{var i=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var c=(n,e,r)=>e in n?i(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))b.call(e,r)&&c(n,r,e[r]);return n};var f=(n,e)=>{for(var r in e)i(n,r,{get:e[r],enumerable:!0})},R=(n,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of p(e))!g.call(n,a)&&a!==r&&i(n,a,{get:()=>e[a],enumerable:!(s=l(e,a))||s.enumerable});return n};var h=n=>R(i({},"__esModule",{value:!0}),n);var P={};f(P,{isProduction4:()=>x,isProduction4a:()=>A,validFirstChar:()=>x,validSecondCharOnwards:()=>A});var v={inclusiveRangeEnds:!1,returnMatchedRangeInsteadOfTrue:!1};function o(n,e,r){let s=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 ".concat(n," (type ").concat(typeof n,")"));return Array.isArray(e)?s.returnMatchedRangeInsteadOfTrue?e.find(a=>s.inclusiveRangeEnds?n>=a[0]&&n<=a[1]:n>a[0]&&n<a[1])||!1:e.some(a=>s.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]],t={inclusiveRangeEnds:!0,skipIncomingRangeSorting:!0};function x(n){return o(n.codePointAt(0),m,t)||o(n.codePointAt(0),I,t)}function A(n){return o(n.codePointAt(0),m,t)||o(n.codePointAt(0),y,t)}return h(P);})();
10
+ "use strict";var charcodeIsValidXmlNameCharacter=(()=>{var d=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var b=(n,e)=>{for(var r in e)d(n,r,{get:e[r],enumerable:!0})},h=(n,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of f(e))!p.call(n,t)&&t!==r&&d(n,t,{get:()=>e[t],enumerable:!(s=m(e,t))||s.enumerable});return n};var R=n=>h(d({},"__esModule",{value:!0}),n);var A={};b(A,{isProduction4:()=>y,isProduction4a:()=>x,validFirstChar:()=>y,validSecondCharOnwards:()=>x});function o(n,e,r){var g,c;if(!Number.isInteger(n)||n<0)throw new TypeError("ranges-is-index-within/isIndexWithin(): [THROW_ID_01] The first input argument should be a string index: a natural number or zero. It was ".concat(n," (type ").concat(typeof n,")."));if(!Array.isArray(e))return!1;let s=(g=r==null?void 0:r.inclusiveRangeEnds)!=null?g:!1,t=(c=r==null?void 0:r.returnMatchedRangeInsteadOfTrue)!=null?c:!1;for(let u=0;u<e.length;u++){let a=e[u];if(s?n>=a[0]&&n<=a[1]:n>a[0]&&n<a[1])return t?a:!0}return!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]],v=[[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]],l=[[97,122]],i={inclusiveRangeEnds:!0,skipIncomingRangeSorting:!0};function y(n){return o(n.codePointAt(0),l,i)||o(n.codePointAt(0),I,i)}function x(n){return o(n.codePointAt(0),l,i)||o(n.codePointAt(0),v,i)}return R(A);})();
11
11
  /**
12
12
  * @name ranges-is-index-within
13
13
  * @fileoverview Checks if index is within any of the given string index ranges
14
- * @version 4.1.3
14
+ * @version 4.2.0
15
15
  * @author Roy Revelt
16
16
  * @license MIT
17
17
  * {@link https://codsen.com/os/ranges-is-index-within/}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "charcode-is-valid-xml-name-character",
3
- "version": "3.1.3",
3
+ "version": "3.2.0",
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,43 +39,42 @@
39
39
  },
40
40
  "types": "types/index.d.ts",
41
41
  "scripts": {
42
- "build": "node '../../ops/scripts/esbuild.js' && npm run dts",
43
- "cjs-off": "exit 0",
44
- "cjs-on": "exit 0",
45
- "dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
42
+ "build": "node ../../ops/scripts/esbuild.js && npm run dts",
43
+ "coverage": "c8 uvu test",
44
+ "dev": "node ../../ops/scripts/esbuild.js --dev && npm run dts",
46
45
  "devtest": "c8 npm run unit && npm run examples && npm run lint",
47
- "dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --log-level 'silent'",
46
+ "dts": "rollup -c && biome format --write --config-path=../../biome.json --vcs-enabled=false --use-editorconfig=false types/index.d.ts",
48
47
  "examples": "node '../../ops/scripts/run-examples.js'",
49
- "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
50
- "letspublish": "npm publish --provenance || :",
51
- "lint": "eslint . --fix --concurrency=auto --cache",
48
+ "lect": "node '../../ops/lect/lect.js'",
49
+ "lect:check": "node '../../ops/lect/lect.js' --check",
50
+ "lint": "biome lint --error-on-warnings . && npm run typecheck",
51
+ "lint:fix": "biome lint --write --error-on-warnings . && npm run typecheck",
52
52
  "perf": "node perf/check.js",
53
53
  "prep": "echo 'ready'",
54
- "prettier": "prettier",
55
- "prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --log-level 'silent'",
56
- "pretest": "npm run lect && npm run build",
54
+ "prettier": "biome format",
55
+ "prettier:format": "biome format --write .",
56
+ "pretest": "npm run lect:check && npm run build",
57
57
  "test": "npm run devtest",
58
+ "typecheck": "tsc --noEmit --pretty false --project tsconfig.json",
58
59
  "unit": "uvu test"
59
60
  },
60
- "engines": {
61
- "node": ">=14.18.0"
62
- },
63
61
  "c8": {
62
+ "all": true,
64
63
  "check-coverage": true,
65
- "exclude": [
66
- "**/test/**/*.*"
67
- ],
64
+ "exclude": ["**/test/**/*.*"],
65
+ "include": ["dist/*.esm.js"],
68
66
  "lines": 100
69
67
  },
70
68
  "lect": {
71
69
  "licence": {
72
- "extras": [
73
- ""
74
- ]
70
+ "extras": [""]
75
71
  }
76
72
  },
77
73
  "dependencies": {
78
- "ranges-is-index-within": "^4.1.3"
74
+ "ranges-is-index-within": "^4.2.0"
75
+ },
76
+ "engines": {
77
+ "node": ">=18.20.8"
79
78
  },
80
79
  "publishConfig": {
81
80
  "registry": "https://registry.npmjs.org/"