@t4h.framework/transforms 0.2.12 → 0.2.14
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 +11 -0
- package/README.md +7 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @t4h.framework/transforms
|
|
2
2
|
|
|
3
|
+
## 0.2.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#276](https://github.com/tech4humans-brasil/framework/pull/276) [`7b38934`](https://github.com/tech4humans-brasil/framework/commit/7b38934e8f9207c98c33afcd76e3a7a4da7e8b14) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - The Quick start compiles. The docs tell that `path` goes only through object
|
|
8
|
+
keys, with no array index and no escape for a `.` in a key. They name
|
|
9
|
+
`JsonOptions`, give the path of the output file, the Node.js version and the
|
|
10
|
+
peer dependencies.
|
|
11
|
+
|
|
12
|
+
## 0.2.13
|
|
13
|
+
|
|
3
14
|
## 0.2.12
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -8,10 +8,11 @@ each record.
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
npm install @t4h.framework/transforms
|
|
11
|
+
npm install @t4h.framework/transforms @t4h.framework/core @t4h.framework/fs
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Peer dependencies: `@t4h.framework/core`,
|
|
14
|
+
Requires Node.js 22 or later. Peer dependencies: `@t4h.framework/core`,
|
|
15
|
+
`@t4h.framework/fs`.
|
|
15
16
|
|
|
16
17
|
## Usage
|
|
17
18
|
|
|
@@ -25,6 +26,10 @@ const ndjson = await json(file, { path: 'records.record' }).toNDJson()
|
|
|
25
26
|
await split(ndjson, processRecord, { delimiter: Split.line() })
|
|
26
27
|
```
|
|
27
28
|
|
|
29
|
+
`file` is a `Binary`, and `processRecord` is a workflow that takes one record
|
|
30
|
+
as a string. The [Quick start](https://tech4humans-brasil.github.io/framework/transforms/#quick-start)
|
|
31
|
+
declares both.
|
|
32
|
+
|
|
28
33
|
## Documentation
|
|
29
34
|
|
|
30
35
|
https://tech4humans-brasil.github.io/framework/transforms/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t4h.framework/transforms",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "Data transform activities for the T4H Framework",
|
|
5
5
|
"homepage": "https://github.com/tech4humans-brasil/framework/tree/main/packages/transforms",
|
|
6
6
|
"bugs": "https://github.com/tech4humans-brasil/framework/issues",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"test:watch": "vitest"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@t4h.framework/core": "^0.21.
|
|
37
|
-
"@t4h.framework/fs": "^0.14.
|
|
36
|
+
"@t4h.framework/core": "^0.21.2",
|
|
37
|
+
"@t4h.framework/fs": "^0.14.2",
|
|
38
38
|
"typescript": "^5.9.3",
|
|
39
39
|
"vitest": "^4.0.18"
|
|
40
40
|
},
|