hazo_scrape 1.6.2 → 1.6.3
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/CHANGE_LOG.md +19 -0
- package/dist/lib/index.d.ts +10 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +18 -0
- package/dist/locales/en.json +1 -0
- package/dist/locales/locales/en.json +1 -0
- package/package.json +7 -3
package/CHANGE_LOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# hazo_scrape — Change Log
|
|
2
2
|
|
|
3
|
+
## 1.6.3 — 2026-09-21
|
|
4
|
+
|
|
5
|
+
Future-proofing i18n plumbing only — no behavior change. hazo_scrape is a "zero-string" package
|
|
6
|
+
(headless scraping/parsing engine, zero `.tsx` files, no rendered UI; the string literals in the
|
|
7
|
+
codebase are internal `HazoError` diagnostic messages for calling code/logs, not end-user copy),
|
|
8
|
+
so this wires the canonical `hazo_core/i18n` bridge without adding any real strings yet — closes
|
|
9
|
+
the gap flagged by the workspace's `npm run audit:i18n` gate.
|
|
10
|
+
|
|
11
|
+
- `src/locales/en.json` — empty flat catalog (`{}`).
|
|
12
|
+
- `src/lib/index.ts` now exports `t = createPackageT('hazo_scrape', en)`, re-exported from the
|
|
13
|
+
main entry point (`src/index.ts` re-exports `./lib/index.js`). Loads the catalog via
|
|
14
|
+
`createRequire` rather than `import en from '../locales/en.json' with { type: 'json' }` — this
|
|
15
|
+
package's `tsconfig.json` uses `"module": "Node16"`, which throws TS2823 on import-attributes
|
|
16
|
+
syntax (a known incompatibility found during the workspace's i18n adoption pass).
|
|
17
|
+
- `package.json` `build` script now runs `cp -r src/locales dist/locales` after `tsc` so the
|
|
18
|
+
catalog ships in the published `dist/`.
|
|
19
|
+
- Added `hazo_i18n` (`^0.5.0`, optional) to `peerDependencies`/`peerDependenciesMeta`; bumped the
|
|
20
|
+
existing `hazo_core` peer to `^2.4.0`.
|
|
21
|
+
|
|
3
22
|
## 1.6.1 — 2026-07-29
|
|
4
23
|
|
|
5
24
|
Four `extractTable` correctness fixes. Kept as a **separate version** rather than folded into the (unpublished) 1.6.0: three of the four regress behaviour that shipped in **1.3.0** and is live on npm, so they deserve their own visible `Fixed` entry attributable to a version consumers can upgrade *to*, instead of being buried inside 1.6.0's `Added` list.
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
export * from '../parse/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Future-proofing plumbing only: hazo_scrape is a "zero-string" package —
|
|
4
|
+
* it's a headless scraping/parsing engine with no rendered UI and no
|
|
5
|
+
* user-facing copy (all string literals in this package are internal
|
|
6
|
+
* HazoError diagnostic messages for calling code/logs, not end-user text).
|
|
7
|
+
* `en` is an empty flat catalog today. If this package ever grows a
|
|
8
|
+
* user-facing string, add it to `src/locales/en.json` and read it via
|
|
9
|
+
* `t('some.key')` instead of a literal.
|
|
10
|
+
*/
|
|
11
|
+
export declare const t: import("hazo_core/i18n").TFunc;
|
|
2
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAYlC;;;;;;;;GAQG;AACH,eAAO,MAAM,CAAC,gCAAoC,CAAC"}
|
package/dist/lib/index.js
CHANGED
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
// hazo_scrape/src/lib/index.ts — Core library exports
|
|
2
2
|
export * from '../parse/index.js';
|
|
3
|
+
import { createRequire } from 'node:module';
|
|
4
|
+
import { createPackageT } from 'hazo_core/i18n';
|
|
5
|
+
// This package's tsconfig.json uses `"module": "Node16"`, which throws
|
|
6
|
+
// TS2823 on `import en from '../locales/en.json' with { type: 'json' }`
|
|
7
|
+
// (the import-attributes syntax hazo_core/i18n's other adopters use). Load
|
|
8
|
+
// the flat catalog via createRequire instead — see the workspace i18n
|
|
9
|
+
// adoption notes for this known Node16 incompatibility.
|
|
10
|
+
const en = createRequire(import.meta.url)('../locales/en.json');
|
|
11
|
+
/**
|
|
12
|
+
* Future-proofing plumbing only: hazo_scrape is a "zero-string" package —
|
|
13
|
+
* it's a headless scraping/parsing engine with no rendered UI and no
|
|
14
|
+
* user-facing copy (all string literals in this package are internal
|
|
15
|
+
* HazoError diagnostic messages for calling code/logs, not end-user text).
|
|
16
|
+
* `en` is an empty flat catalog today. If this package ever grows a
|
|
17
|
+
* user-facing string, add it to `src/locales/en.json` and read it via
|
|
18
|
+
* `t('some.key')` instead of a literal.
|
|
19
|
+
*/
|
|
20
|
+
export const t = createPackageT('hazo_scrape', en);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hazo_scrape",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "Generic source-agnostic web scraping engine with a network-free parse core.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"SETUP_CHECKLIST.md"
|
|
28
28
|
],
|
|
29
29
|
"scripts": {
|
|
30
|
-
"build": "tsc -p tsconfig.build.json",
|
|
30
|
+
"build": "tsc -p tsconfig.build.json && cp -r src/locales dist/locales",
|
|
31
31
|
"type-check": "tsc --noEmit",
|
|
32
32
|
"lint": "tsc --noEmit",
|
|
33
33
|
"test": "node --experimental-vm-modules ../node_modules/jest/bin/jest.js --config jest.config.cjs",
|
|
@@ -35,11 +35,15 @@
|
|
|
35
35
|
"build:test-app": "npm run build && cd test-app && npm run build"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"hazo_core": "^2.
|
|
38
|
+
"hazo_core": "^2.4.0",
|
|
39
|
+
"hazo_i18n": "^0.5.0",
|
|
39
40
|
"react": "^18.0.0 || ^19.0.0",
|
|
40
41
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
41
42
|
},
|
|
42
43
|
"peerDependenciesMeta": {
|
|
44
|
+
"hazo_i18n": {
|
|
45
|
+
"optional": true
|
|
46
|
+
},
|
|
43
47
|
"react": {
|
|
44
48
|
"optional": true
|
|
45
49
|
},
|