@socketsecurity/lib 6.0.4 → 6.0.5
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 +6 -0
- package/dist/constants/socket.js +1 -1
- package/dist/globs/matcher.js +1 -1
- package/dist/logger/node.js +0 -1
- package/dist/strings/width.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [6.0.5](https://github.com/SocketDev/socket-lib/releases/tag/v6.0.5) - 2026-05-28
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **`/*@__PURE__*/` annotations in three modules** were positioned where rolldown (and any bundler honoring tree-shaking pure-call hints) ignored them, emitting `INVALID_ANNOTATION` warnings during downstream builds. The annotations are now adjacent to their `require()` call expressions in `globs/matcher` (`getMatchesGlob`'s `path.matchesGlob` probe) and `strings/width` (`getEastAsianWidth`'s lazy load). A stale `/*@__PURE__*/` on the `Logger` class declaration in `logger/node` was removed — class declarations are not call expressions and the annotation was being silently dropped.
|
|
13
|
+
|
|
8
14
|
## [6.0.4](https://github.com/SocketDev/socket-lib/releases/tag/v6.0.4) - 2026-05-28
|
|
9
15
|
|
|
10
16
|
### Added
|
package/dist/constants/socket.js
CHANGED
|
@@ -33,7 +33,7 @@ const SOCKET_REGISTRY_APP_NAME = "registry";
|
|
|
33
33
|
const SOCKET_WHEELHOUSE_APP_NAME = "wheelhouse";
|
|
34
34
|
const SOCKET_APP_PREFIX = "_";
|
|
35
35
|
const SOCKET_LIB_NAME = "@socketsecurity/lib";
|
|
36
|
-
const SOCKET_LIB_VERSION = "6.0.
|
|
36
|
+
const SOCKET_LIB_VERSION = "6.0.5";
|
|
37
37
|
const SOCKET_IPC_HANDSHAKE = "SOCKET_IPC_HANDSHAKE";
|
|
38
38
|
const CACHE_SOCKET_API_DIR = "socket-api";
|
|
39
39
|
const REGISTRY = "registry";
|
package/dist/globs/matcher.js
CHANGED
|
@@ -97,7 +97,7 @@ function getGlobMatcher(glob, options) {
|
|
|
97
97
|
/* @__NO_SIDE_EFFECTS__ */
|
|
98
98
|
function getMatchesGlob() {
|
|
99
99
|
if (!_matchesGlobProbed) {
|
|
100
|
-
const fn = require("node:path").matchesGlob;
|
|
100
|
+
const fn = (/* @__PURE__ */ require("node:path")).matchesGlob;
|
|
101
101
|
/* c8 ignore start */
|
|
102
102
|
if (typeof fn === "function") _matchesGlob = fn;
|
|
103
103
|
/* c8 ignore stop */
|
package/dist/logger/node.js
CHANGED
package/dist/strings/width.js
CHANGED
|
@@ -23,7 +23,7 @@ const require_ansi_strip = require('../ansi/strip.js');
|
|
|
23
23
|
let _eastAsianWidth;
|
|
24
24
|
/* @__NO_SIDE_EFFECTS__ */
|
|
25
25
|
function getEastAsianWidth() {
|
|
26
|
-
if (_eastAsianWidth === void 0) _eastAsianWidth = require("../external/get-east-asian-width").eastAsianWidth;
|
|
26
|
+
if (_eastAsianWidth === void 0) _eastAsianWidth = (/* @__PURE__ */ require("../external/get-east-asian-width")).eastAsianWidth;
|
|
27
27
|
return _eastAsianWidth;
|
|
28
28
|
}
|
|
29
29
|
const segmenter = new Intl.Segmenter();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/lib",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "Core utilities and infrastructure for Socket.dev security tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Socket.dev",
|
|
@@ -2804,8 +2804,8 @@
|
|
|
2804
2804
|
"@socketregistry/packageurl-js": "npm:@socketregistry/packageurl-js@1.4.2",
|
|
2805
2805
|
"@socketregistry/packageurl-js-stable": "npm:@socketregistry/packageurl-js@1.4.2",
|
|
2806
2806
|
"@socketregistry/yocto-spinner": "1.0.25",
|
|
2807
|
-
"@socketsecurity/lib": "npm:@socketsecurity/lib@6.0.
|
|
2808
|
-
"@socketsecurity/lib-stable": "npm:@socketsecurity/lib@6.0.
|
|
2807
|
+
"@socketsecurity/lib": "npm:@socketsecurity/lib@6.0.4",
|
|
2808
|
+
"@socketsecurity/lib-stable": "npm:@socketsecurity/lib@6.0.4",
|
|
2809
2809
|
"@socketsecurity/sdk": "npm:@socketsecurity/sdk@4.0.1",
|
|
2810
2810
|
"@socketsecurity/sdk-stable": "npm:@socketsecurity/sdk@4.0.1",
|
|
2811
2811
|
"@types/node": "24.9.2",
|