string-character-is-astral-surrogate 3.1.0 → 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,23 @@
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
+ - add throw identifiers to surrogate validation ([511ddce](https://github.com/codsen/codsen/commit/511ddce7dc70343d6ca87342992bc11c6cbdd400))
11
+ - resolve review findings REV-004 through REV-007 ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
12
+ - retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
7
13
 
8
14
  ### Features
9
15
 
10
- - if value to be added is a number, keep it as is, don't stringify ([ce3e1a5](https://github.com/codsen/codsen/commit/ce3e1a525998ca3c0abf0142affef95b14cd1990))
16
+ - add codsen-glob and migrate glob consumers ([5595a2b](https://github.com/codsen/codsen/commit/5595a2b267eaa6cb60072d037aef00b7a28edd42))
17
+ - refresh the tooling and generate with the latest dependencies ([781f802](https://github.com/codsen/codsen/commit/781f802911066a82a4533b0e5a3fcbd742d0dd83))
18
+
19
+ ### Reverts
20
+
21
+ - 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)
22
+ - 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
23
 
12
24
  ## 3.0.0 (2022-12-01)
13
25
 
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,7 +32,7 @@ npm i string-character-is-astral-surrogate
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
37
  import {
38
38
  isHighSurrogate,
@@ -55,9 +55,10 @@ assert.equal(isLowSurrogate("\uDDE2"), true);
55
55
  // the second character, low surrogate of the cap is indeed a low surrogate
56
56
  ```
57
57
 
58
+
58
59
  ## Documentation
59
60
 
60
- Please [visit codsen.com](https://codsen.com/os/string-character-is-astral-surrogate/) for a full description of the API.
61
+ Please [visit codsen.com](https://codsen.com/os/string-character-is-astral-surrogate/) 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/string-character-is-astral-surrogate/CHANGELOG.md).
61
62
 
62
63
  ## Contributing
63
64
 
@@ -67,6 +68,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
67
68
 
68
69
  MIT License
69
70
 
70
- Copyright © 2010-2025 Roy Revelt and other contributors
71
+ Copyright © 2010-2026 Roy Revelt and other contributors
71
72
 
72
73
  <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,10 +1,10 @@
1
1
  /**
2
2
  * @name string-character-is-astral-surrogate
3
3
  * @fileoverview Tells, is given character a part of astral character, specifically, a high and low surrogate
4
- * @version 3.1.0
4
+ * @version 3.2.0
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/string-character-is-astral-surrogate/}
8
8
  */
9
9
 
10
- function t(r){if(typeof r=="string")return r.length===0?!1:r.charCodeAt(0)>=55296&&r.charCodeAt(0)<=56319;if(r===void 0)return!1;throw new TypeError(`string-character-is-astral-surrogate/isHighSurrogate(): the input is not string but ${typeof r}`)}function e(r){if(typeof r=="string")return r.length===0?!1:r.charCodeAt(0)>=56320&&r.charCodeAt(0)<=57343;if(r===void 0)return!1;throw new TypeError(`string-character-is-astral-surrogate/isLowSurrogate(): the input is not string but ${typeof r}`)}export{t as isHighSurrogate,e as isLowSurrogate};
10
+ function t(r){if(typeof r=="string")return r.length===0?!1:r.charCodeAt(0)>=55296&&r.charCodeAt(0)<=56319;if(r===void 0)return!1;throw new TypeError(`string-character-is-astral-surrogate/isHighSurrogate(): [THROW_ID_01] the input is not string but ${typeof r}`)}function e(r){if(typeof r=="string")return r.length===0?!1:r.charCodeAt(0)>=56320&&r.charCodeAt(0)<=57343;if(r===void 0)return!1;throw new TypeError(`string-character-is-astral-surrogate/isLowSurrogate(): [THROW_ID_02] the input is not string but ${typeof r}`)}export{t as isHighSurrogate,e as isLowSurrogate};
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @name string-character-is-astral-surrogate
3
3
  * @fileoverview Tells, is given character a part of astral character, specifically, a high and low surrogate
4
- * @version 3.1.0
4
+ * @version 3.2.0
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/string-character-is-astral-surrogate/}
8
8
  */
9
9
 
10
- "use strict";var stringCharacterIsAstralSurrogate=(()=>{var a=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var s=(r,t)=>{for(var n in t)a(r,n,{get:t[n],enumerable:!0})},d=(r,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of f(t))!o.call(r,e)&&e!==n&&a(r,e,{get:()=>t[e],enumerable:!(i=u(t,e))||i.enumerable});return r};var c=r=>d(a({},"__esModule",{value:!0}),r);var g={};s(g,{isHighSurrogate:()=>l,isLowSurrogate:()=>p});function l(r){if(typeof r=="string")return r.length===0?!1:r.charCodeAt(0)>=55296&&r.charCodeAt(0)<=56319;if(r===void 0)return!1;throw new TypeError("string-character-is-astral-surrogate/isHighSurrogate(): the input is not string but ".concat(typeof r))}function p(r){if(typeof r=="string")return r.length===0?!1:r.charCodeAt(0)>=56320&&r.charCodeAt(0)<=57343;if(r===void 0)return!1;throw new TypeError("string-character-is-astral-surrogate/isLowSurrogate(): the input is not string but ".concat(typeof r))}return c(g);})();
10
+ "use strict";var stringCharacterIsAstralSurrogate=(()=>{var a=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var s=(r,t)=>{for(var n in t)a(r,n,{get:t[n],enumerable:!0})},d=(r,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of f(t))!o.call(r,e)&&e!==n&&a(r,e,{get:()=>t[e],enumerable:!(i=u(t,e))||i.enumerable});return r};var c=r=>d(a({},"__esModule",{value:!0}),r);var g={};s(g,{isHighSurrogate:()=>l,isLowSurrogate:()=>p});function l(r){if(typeof r=="string")return r.length===0?!1:r.charCodeAt(0)>=55296&&r.charCodeAt(0)<=56319;if(r===void 0)return!1;throw new TypeError("string-character-is-astral-surrogate/isHighSurrogate(): [THROW_ID_01] the input is not string but ".concat(typeof r))}function p(r){if(typeof r=="string")return r.length===0?!1:r.charCodeAt(0)>=56320&&r.charCodeAt(0)<=57343;if(r===void 0)return!1;throw new TypeError("string-character-is-astral-surrogate/isLowSurrogate(): [THROW_ID_02] the input is not string but ".concat(typeof r))}return c(g);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "string-character-is-astral-surrogate",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Tells, is given character a part of astral character, specifically, a high and low surrogate",
5
5
  "keywords": [
6
6
  "astral",
@@ -38,41 +38,43 @@
38
38
  },
39
39
  "types": "types/index.d.ts",
40
40
  "scripts": {
41
- "build": "node '../../ops/scripts/esbuild.js' && npm run dts",
42
- "cjs-off": "exit 0",
43
- "cjs-on": "exit 0",
44
- "dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
41
+ "build": "node ../../ops/scripts/esbuild.js && npm run dts",
42
+ "coverage": "c8 uvu test",
43
+ "dev": "node ../../ops/scripts/esbuild.js --dev && npm run dts",
45
44
  "devtest": "c8 npm run unit && npm run examples && npm run lint",
46
- "dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --log-level 'silent'",
45
+ "dts": "rollup -c && biome format --write --config-path=../../biome.json --vcs-enabled=false --use-editorconfig=false types/index.d.ts",
47
46
  "examples": "node '../../ops/scripts/run-examples.js'",
48
- "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
49
- "letspublish": "npm publish --provenance || :",
50
- "lint": "eslint . --fix --concurrency=auto --cache",
47
+ "lect": "node '../../ops/lect/lect.js'",
48
+ "lect:check": "node '../../ops/lect/lect.js' --check",
49
+ "lint": "biome lint --error-on-warnings . && npm run typecheck",
50
+ "lint:fix": "biome lint --write --error-on-warnings . && npm run typecheck",
51
51
  "perf": "node perf/check.js",
52
52
  "prep": "echo 'ready'",
53
- "prettier": "prettier",
54
- "prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --log-level 'silent'",
55
- "pretest": "npm run lect && npm run build",
53
+ "prettier": "biome format",
54
+ "prettier:format": "biome format --write .",
55
+ "pretest": "npm run lect:check && npm run build",
56
56
  "test": "npm run devtest",
57
+ "typecheck": "tsc --noEmit --pretty false --project tsconfig.json",
57
58
  "unit": "uvu test"
58
59
  },
59
- "engines": {
60
- "node": ">=14.18.0"
61
- },
62
60
  "c8": {
61
+ "all": true,
62
+ "branches": 100,
63
63
  "check-coverage": true,
64
- "exclude": [
65
- "**/test/**/*.*"
66
- ],
67
- "lines": 100
64
+ "exclude": ["**/test/**/*.*"],
65
+ "functions": 100,
66
+ "include": ["dist/*.esm.js"],
67
+ "lines": 100,
68
+ "statements": 100
68
69
  },
69
70
  "lect": {
70
71
  "licence": {
71
- "extras": [
72
- ""
73
- ]
72
+ "extras": [""]
74
73
  }
75
74
  },
75
+ "engines": {
76
+ "node": ">=18.20.8"
77
+ },
76
78
  "publishConfig": {
77
79
  "registry": "https://registry.npmjs.org/"
78
80
  }
package/.eslintcache DELETED
@@ -1 +0,0 @@
1
- [{"/home/runner/work/codsen/codsen/packages/string-character-is-astral-surrogate/examples/_quickTake.js":"1","/home/runner/work/codsen/codsen/packages/string-character-is-astral-surrogate/perf/check.js":"2","/home/runner/work/codsen/codsen/packages/string-character-is-astral-surrogate/rollup.config.js":"3","/home/runner/work/codsen/codsen/packages/string-character-is-astral-surrogate/src/main.ts":"4","/home/runner/work/codsen/codsen/packages/string-character-is-astral-surrogate/test/test.js":"5"},{"size":708,"mtime":1760566739139,"results":"6","hashOfConfig":"7"},{"size":303,"mtime":1760566739139,"results":"8","hashOfConfig":"9"},{"size":373,"mtime":1760566739140,"results":"10","hashOfConfig":"7"},{"size":1154,"mtime":1760566739140,"results":"11","hashOfConfig":"9"},{"size":2664,"mtime":1760566739140,"results":"12","hashOfConfig":"13"},{"filePath":"14","messages":"15","suppressedMessages":"16","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1nlhngw",{"filePath":"17","messages":"18","suppressedMessages":"19","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1xjytlu",{"filePath":"20","messages":"21","suppressedMessages":"22","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"23","messages":"24","suppressedMessages":"25","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","suppressedMessages":"28","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"nrihsz","/home/runner/work/codsen/codsen/packages/string-character-is-astral-surrogate/examples/_quickTake.js",[],[],"/home/runner/work/codsen/codsen/packages/string-character-is-astral-surrogate/perf/check.js",[],[],"/home/runner/work/codsen/codsen/packages/string-character-is-astral-surrogate/rollup.config.js",[],[],"/home/runner/work/codsen/codsen/packages/string-character-is-astral-surrogate/src/main.ts",[],[],"/home/runner/work/codsen/codsen/packages/string-character-is-astral-surrogate/test/test.js",[],["29","30","31","32","33"],{"ruleId":"34","severity":2,"message":"35","line":3,"column":17,"nodeType":null,"messageId":"36","endLine":3,"endColumn":19,"suppressions":"37"},{"ruleId":"34","severity":2,"message":"38","line":3,"column":21,"nodeType":null,"messageId":"36","endLine":3,"endColumn":23,"suppressions":"39"},{"ruleId":"34","severity":2,"message":"40","line":3,"column":33,"nodeType":null,"messageId":"36","endLine":3,"endColumn":37,"suppressions":"41"},{"ruleId":"34","severity":2,"message":"42","line":3,"column":39,"nodeType":null,"messageId":"36","endLine":3,"endColumn":42,"suppressions":"43"},{"ruleId":"34","severity":2,"message":"44","line":3,"column":44,"nodeType":null,"messageId":"36","endLine":3,"endColumn":49,"suppressions":"45"},"@typescript-eslint/no-unused-vars","'is' is defined but never used.","unusedVar",["46"],"'ok' is defined but never used.",["47"],"'type' is defined but never used.",["48"],"'not' is defined but never used.",["49"],"'match' is defined but never used.",["50"],{"kind":"51","justification":"52"},{"kind":"51","justification":"52"},{"kind":"51","justification":"52"},{"kind":"51","justification":"52"},{"kind":"51","justification":"52"},"directive",""]