Skip to content

Commit 1ba33e9

Browse files
v1.0.2
- Temporary fields bug is fixed. - Comments are improved around the /core module - Sub transform block can be defined at any nested level, but can be accessed only at the root level. - License is added in some of the files.
1 parent 55229e7 commit 1ba33e9

File tree

13 files changed

+117
-33
lines changed

13 files changed

+117
-33
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<img alt="license" src="https://img.shields.io/badge/license-MIT-blue">
1212
</a>
1313
<a href="https://github.com/yakshavingdevs/datadance/blob/main/LICENSE">
14-
<img alt="version" src="https://img.shields.io/badge/version-1.0.1-blue">
14+
<img alt="version" src="https://img.shields.io/badge/version-1.0.2-blue">
1515
</a><br><br>
1616
</div>
1717

build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ await build({
1212
test: false,
1313
package: {
1414
name: "datadance",
15-
version: "1.0.1",
15+
version: "1.0.2",
1616
description: "DataDance is a versatile data processing package that makes handling JSON transformations straightforward and efficient. Our package accepts JSON input and allows you to define transformations using a code-like format. Provide your data and transformation rules, and DataDance will process them to deliver the desired output.",
1717
license: "MIT",
1818
type: "module",

core/lib/operators/custom_operators.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2024-Present The Yak Shaving Devs, MIT License
2+
13
import { Errors } from "../../constants.ts";
24
import { getType } from "../../utils.ts";
35

core/lib/transforms/array_transforms.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2024-Present The Yak Shaving Devs, MIT License
2+
13
import { ErrorObject } from "../../types.ts";
24
import { getType } from "../../utils.ts";
35
import { Errors } from "../../constants.ts";

core/lib/transforms/date_transforms.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2024-Present The Yak Shaving Devs, MIT License
2+
13
import { DateTime, Interval, Duration } from 'luxon';
24
import { DateTimeFormatType, ErrorObject } from "../../types.ts";
35
import { convertDateTime, getType, isValidDateTime } from "../../utils.ts";

core/lib/transforms/misc_transforms.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2024-Present The Yak Shaving Devs, MIT License
2+
13
import jsonpath from "jsonpath";
24
import { getType } from "../../utils.ts";
35
import {

core/lib/transforms/number_transforms.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2024-Present The Yak Shaving Devs, MIT License
2+
13
import { Errors } from "../../constants.ts";
24
import { getType } from "../../utils.ts";
35

core/lib/transforms/object_transforms.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2024-Present The Yak Shaving Devs, MIT License
2+
13
import { Errors } from "../../constants.ts";
24
import { PlainObject } from "../../types.ts";
35
import { getType, isObject, symmetricDifference } from "../../utils.ts";

core/lib/transforms/string_transforms.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2024-Present The Yak Shaving Devs, MIT License
2+
13
import { getType, isRegExpExpression } from "../../utils.ts";
24
import { Errors } from "../../constants.ts";
35

core/load_lib.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,13 @@ mozjexl.addTransform("setMonth", SET_MONTH);
188188
mozjexl.addTransform("setYear", SET_YEAR);
189189

190190

191-
// This has to be loaded at last to mozjexl!... That is why placing it here.
191+
/**
192+
* This must be loaded into the `mozjexl` object last, which is why
193+
* it is placed here.
194+
*
195+
* Loading it last ensures that all dependencies or preceding configurations
196+
* are already in place, maintaining the correct order of operations.
197+
*/
192198
const EVALUATE_EXPRESSION = async (val: string, context: Record<any, any>) => {
193199
if (typeof val === "string") {
194200
const regex = /{{\s*(.+?)\s*}}/g;

0 commit comments

Comments
 (0)