rdapify 0.3.1 → 0.3.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 +17 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/infrastructure/monitoring/TelemetryExporter.js +15 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/infrastructure/monitoring/TelemetryExporter.js +15 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/infrastructure/monitoring/TelemetryExporter.d.ts.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.2] - 2026-03-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- `TelemetryExporter`: `RDAPIFY_VERSION` now dynamically read from `package.json`
|
|
14
|
+
instead of hardcoded `'0.2.3'` — OTLP spans now report the correct library version
|
|
15
|
+
- `src/index.ts`: JSDoc `@version` corrected to `0.3.2` (was `0.3.0`)
|
|
16
|
+
- `VERSION` export updated to `'0.3.2'`
|
|
17
|
+
- Cloud templates (`aws_lambda`, `azure_functions`, `google_cloud_run`) and
|
|
18
|
+
`express_app` example updated from `^0.1.0-alpha.4` to `^0.3.1`
|
|
19
|
+
- `SECURITY.md`: Supported versions updated — 0.2.x and 0.3.x now listed as active
|
|
20
|
+
|
|
21
|
+
### Internal
|
|
22
|
+
- `prepublishOnly` hook restored — all npm publishes now run `verify`
|
|
23
|
+
(lint + typecheck + test + build + API snapshot check)
|
|
24
|
+
- `docs.yml`: removed `|| true` fallbacks that silently hid link-check and
|
|
25
|
+
markdownlint failures
|
|
26
|
+
|
|
10
27
|
## [1.0.0] - planned February 2027
|
|
11
28
|
|
|
12
29
|
### Summary
|
package/dist/cjs/index.js
CHANGED
|
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "normalizeNameserver", { enumerable: true, get: f
|
|
|
39
39
|
Object.defineProperty(exports, "normalizeEntityHandle", { enumerable: true, get: function () { return validators_1.normalizeEntityHandle; } });
|
|
40
40
|
var UsageTelemetry_1 = require("./infrastructure/telemetry/UsageTelemetry");
|
|
41
41
|
Object.defineProperty(exports, "UsageTelemetry", { enumerable: true, get: function () { return UsageTelemetry_1.UsageTelemetry; } });
|
|
42
|
-
exports.VERSION = '0.3.
|
|
42
|
+
exports.VERSION = '0.3.2';
|
|
43
43
|
var BatchProcessor_1 = require("./application/services/BatchProcessor");
|
|
44
44
|
Object.defineProperty(exports, "BatchProcessor", { enumerable: true, get: function () { return BatchProcessor_1.BatchProcessor; } });
|
|
45
45
|
var RateLimiter_1 = require("./infrastructure/http/RateLimiter");
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TelemetryExporter = void 0;
|
|
4
|
-
const
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
function findPackageVersion() {
|
|
6
|
+
let dir = __dirname;
|
|
7
|
+
for (let i = 0; i < 6; i++) {
|
|
8
|
+
try {
|
|
9
|
+
const pkg = require((0, path_1.join)(dir, 'package.json'));
|
|
10
|
+
if (pkg.version)
|
|
11
|
+
return pkg.version;
|
|
12
|
+
}
|
|
13
|
+
catch { }
|
|
14
|
+
dir = (0, path_1.join)(dir, '..');
|
|
15
|
+
}
|
|
16
|
+
return '0.0.0';
|
|
17
|
+
}
|
|
18
|
+
const RDAPIFY_VERSION = findPackageVersion();
|
|
5
19
|
class TelemetryExporter {
|
|
6
20
|
constructor(options) {
|
|
7
21
|
this.endpoint = options.endpoint ?? '';
|
package/dist/esm/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { RDAPClient } from './application/client';
|
|
|
2
2
|
export { RDAPifyError, SSRFProtectionError, NetworkError, TimeoutError, RDAPServerError, NoServerFoundError, ValidationError, ParseError, CacheError, RateLimitError, SearchNotSupportedError, isRDAPifyError, isSSRFProtectionError, isNetworkError, isTimeoutError, isRateLimitError, } from './shared/errors';
|
|
3
3
|
export { validateDomain, validateIP, validateIPv4, validateIPv6, validateASN, validateNameserver, validateEntityHandle, isPrivateIP, isLocalhost, isLinkLocal, normalizeDomain, normalizeIP, normalizeASN, normalizeNameserver, normalizeEntityHandle, } from './shared/utils/validators';
|
|
4
4
|
export { UsageTelemetry } from './infrastructure/telemetry/UsageTelemetry';
|
|
5
|
-
export const VERSION = '0.3.
|
|
5
|
+
export const VERSION = '0.3.2';
|
|
6
6
|
export { BatchProcessor } from './application/services/BatchProcessor';
|
|
7
7
|
export { RateLimiter } from './infrastructure/http/RateLimiter';
|
|
8
8
|
export { DistributedRateLimiter } from './infrastructure/http/DistributedRateLimiter';
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { join } from 'path';
|
|
2
|
+
function findPackageVersion() {
|
|
3
|
+
let dir = __dirname;
|
|
4
|
+
for (let i = 0; i < 6; i++) {
|
|
5
|
+
try {
|
|
6
|
+
const pkg = require(join(dir, 'package.json'));
|
|
7
|
+
if (pkg.version)
|
|
8
|
+
return pkg.version;
|
|
9
|
+
}
|
|
10
|
+
catch { }
|
|
11
|
+
dir = join(dir, '..');
|
|
12
|
+
}
|
|
13
|
+
return '0.0.0';
|
|
14
|
+
}
|
|
15
|
+
const RDAPIFY_VERSION = findPackageVersion();
|
|
2
16
|
export class TelemetryExporter {
|
|
3
17
|
constructor(options) {
|
|
4
18
|
this.endpoint = options.endpoint ?? '';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { RDAPifyError, SSRFProtectionError, NetworkError, TimeoutError, RDAPServ
|
|
|
6
6
|
export { validateDomain, validateIP, validateIPv4, validateIPv6, validateASN, validateNameserver, validateEntityHandle, isPrivateIP, isLocalhost, isLinkLocal, normalizeDomain, normalizeIP, normalizeASN, normalizeNameserver, normalizeEntityHandle, } from './shared/utils/validators';
|
|
7
7
|
export type { ICachePort } from './core/ports';
|
|
8
8
|
export { UsageTelemetry } from './infrastructure/telemetry/UsageTelemetry';
|
|
9
|
-
export declare const VERSION = "0.3.
|
|
9
|
+
export declare const VERSION = "0.3.2";
|
|
10
10
|
export { BatchProcessor } from './application/services/BatchProcessor';
|
|
11
11
|
export { RateLimiter } from './infrastructure/http/RateLimiter';
|
|
12
12
|
export { DistributedRateLimiter } from './infrastructure/http/DistributedRateLimiter';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TelemetryExporter.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/monitoring/TelemetryExporter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TelemetryExporter.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/monitoring/TelemetryExporter.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAoBnE,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE;YAAE,WAAW,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;YAAC,SAAS,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAC,CAAC;IAC7G,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD;AAKD,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;IACrC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAyB;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;gBAEtB,OAAO,EAAE,gBAAgB;IAWrC,SAAS,IAAI,OAAO;IAQd,WAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBnD,SAAS,CACP,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EACtD,YAAY,CAAC,EAAE,MAAM,GACpB,QAAQ;IAgBL,OAAO,CACX,IAAI,EAAE,QAAQ,EACd,MAAM,GAAE;QAAE,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAgB,GAC1D,OAAO,CAAC,IAAI,CAAC;IAMhB,OAAO,CAAC,gBAAgB;IAkCxB,OAAO,CAAC,gBAAgB;YAcV,WAAW;IAoBzB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,OAAO;CAGhB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rdapify",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Unified, secure, high-performance RDAP client with built-in SSRF protection and privacy controls",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"verify:api": "node scripts/verify-api.js",
|
|
73
73
|
"verify:api:update": "npm run build && node scripts/verify-api.js",
|
|
74
74
|
"verify": "npm run lint && npm run typecheck && npm test && npm run build && npm run verify:api",
|
|
75
|
-
"
|
|
75
|
+
"prepublishOnly": "npm run verify",
|
|
76
76
|
"prepack": "npm run build",
|
|
77
77
|
"prepare": "husky install",
|
|
78
78
|
"playground": "npm run build && cd playground && npm install && npm start",
|