Skip to content

feat: 🎸 update dependencies #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@
},
"dependencies": {
"@jsonjoy.com/json-pointer": "^1.0.0",
"@jsonjoy.com/util": "^1.3.0"
"@jsonjoy.com/util": "^1.6.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.3",
"@biomejs/biome": "^1.9.4",
"@types/benchmark": "^2.1.5",
"@types/jest": "^29.5.12",
"@types/jest": "^29.5.14",
"benchmark": "^2.1.4",
"config-galore": "^1.0.0",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"tslib": "^2.7.0",
"typescript": "^5.6.2"
"ts-jest": "^29.3.4",
"tslib": "^2.8.1",
"typescript": "^5.8.3"
},
"jest": {
"moduleFileExtensions": [
Expand Down
6 changes: 3 additions & 3 deletions src/operators/array.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as util from '../util';
import {Expression, type ExpressionResult, Literal} from '../codegen-steps';
import {$$deepEqual} from '@jsonjoy.com/util/lib/json-equal/$$deepEqual';
import {deepEqualCodegen} from '@jsonjoy.com/util/lib/json-equal/deepEqualCodegen';
import type * as types from '../types';
import type {Vars} from '../Vars';

Expand Down Expand Up @@ -172,7 +172,7 @@ export const arrayOperators: types.OperatorDefinition<any>[] = [
const arr = ctx.operands[0];
const val = ctx.operands[1];
if (val instanceof Literal) {
const fnJs = $$deepEqual(val.val);
const fnJs = deepEqualCodegen(val.val);
const d = ctx.const(fnJs);
ctx.link(util.isInArr2, 'isInArr2');
const js = `isInArr2((${ctx.operands[0]}),${d})`;
Expand Down Expand Up @@ -211,7 +211,7 @@ export const arrayOperators: types.OperatorDefinition<any>[] = [
(ctx: types.OperatorCodegenCtx<types.ExprIndexOf>): ExpressionResult => {
const val = ctx.operands[1];
if (val instanceof Literal) {
const fnJs = $$deepEqual(val.val);
const fnJs = deepEqualCodegen(val.val);
const d = ctx.const(fnJs);
ctx.link(util.indexOf2, 'indexOf2');
const js = `indexOf2((${ctx.operands[0]}),${d})`;
Expand Down
4 changes: 2 additions & 2 deletions src/operators/comparison.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Expression, type ExpressionResult, Literal} from '../codegen-steps';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';
import {$$deepEqual} from '@jsonjoy.com/util/lib/json-equal/$$deepEqual';
import {deepEqualCodegen} from '@jsonjoy.com/util/lib/json-equal/deepEqualCodegen';
import * as util from '../util';
import type * as types from '../types';

Expand All @@ -10,7 +10,7 @@ const eqLitVsExpr = (
ctx: types.OperatorCodegenCtx<types.Expression>,
not?: boolean,
): ExpressionResult => {
const fn = $$deepEqual(literal.val);
const fn = deepEqualCodegen(literal.val);
const d = ctx.const(fn);
return new Expression(`${not ? '!' : ''}${d}(${expression})`);
};
Expand Down
Loading