string-character-is-astral-surrogate 3.2.0 → 3.2.2

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,12 +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.2.1 (2026-09-01)
7
+
8
+ ### Bug Fixes
9
+
10
+ - allow omitted surrogate inputs ([ae1f614](https://github.com/codsen/codsen/commit/ae1f6146d4a1e6e868e2612934bcc5e5dec95967))
11
+
12
+ ### Performance Improvements
13
+
14
+ - optimise package hot paths and JSON editing ([f3112bd](https://github.com/codsen/codsen/commit/f3112bd7fc0d7c9bc09312d3744c950691d72ca5))
15
+
6
16
  ## 3.2.0 (2026-08-19)
7
17
 
8
18
  ### Bug Fixes
9
19
 
10
20
  - 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))
21
+ - resolve various review findings ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
12
22
  - retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
13
23
 
14
24
  ### Features
package/README.md CHANGED
@@ -21,6 +21,8 @@
21
21
  <img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT Licence">
22
22
  </p>
23
23
 
24
+ **No dependencies whatsoever.** This package declares no dependencies or devDependencies.
25
+
24
26
  ## Install
25
27
 
26
28
  This package is [pure ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). If you're not ready yet, install an older version of this program, 1.13.0 (`npm i string-character-is-astral-surrogate@1.13.0`).
@@ -58,7 +60,7 @@ assert.equal(isLowSurrogate("\uDDE2"), true);
58
60
 
59
61
  ## Documentation
60
62
 
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).
63
+ Please [visit codsen.com](https://codsen.com/os/string-character-is-astral-surrogate/) for a full description of the API. For **Changelog**, see [raw md on GitHub](https://github.com/codsen/codsen/blob/main/packages/string-character-is-astral-surrogate/CHANGELOG.md) or [the website](https://codsen.com/os/string-character-is-astral-surrogate/changelog).
62
64
 
63
65
  ## Contributing
64
66
 
@@ -1,7 +1,7 @@
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.2.0
4
+ * @version 3.2.2
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/string-character-is-astral-surrogate/}
@@ -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.2.0
4
+ * @version 3.2.2
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(): [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);})();
10
+ "use strict";var stringCharacterIsAstralSurrogate=(()=>{var n=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var s=(r,t)=>{for(var a in t)n(r,a,{get:t[a],enumerable:!0})},c=(r,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of o(t))!f.call(r,e)&&e!==a&&n(r,e,{get:()=>t[e],enumerable:!(i=u(t,e))||i.enumerable});return r};var l=r=>c(n({},"__esModule",{value:!0}),r);var g={};s(g,{isHighSurrogate:()=>p,isLowSurrogate:()=>d});function p(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 d(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 l(g);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "string-character-is-astral-surrogate",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "Tells, is given character a part of astral character, specifically, a high and low surrogate",
5
5
  "keywords": [
6
6
  "astral",
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare function isHighSurrogate(something: string | undefined): boolean;
2
- declare function isLowSurrogate(something: string | undefined): boolean;
1
+ declare function isHighSurrogate(something?: string): boolean;
2
+ declare function isLowSurrogate(something?: string): boolean;
3
3
 
4
4
  export { isHighSurrogate, isLowSurrogate };