Comparing version 6.0.23 to 6.0.24-leo-ron-1099-experimental-48
import { | ||
isStorableObject, | ||
mergeOptions, | ||
runQueriesWithStorageAndHooks | ||
} from "./chunk-MTB4U7YJ.js"; | ||
} from "./chunk-TJWXHF5Z.js"; | ||
@@ -36,13 +37,20 @@ // src/utils/handlers.ts | ||
const callback = (query, queryOptions) => queryHandler(query, mergeOptions(options, queryOptions)); | ||
const replacer = (value) => { | ||
return isStorableObject(value) ? value : JSON.parse(JSON.stringify(value)); | ||
}; | ||
return { | ||
// Query types for interacting with records. | ||
get: getSyntaxProxy({ rootProperty: "get", callback }), | ||
set: getSyntaxProxy({ rootProperty: "set", callback }), | ||
add: getSyntaxProxy({ rootProperty: "add", callback }), | ||
remove: getSyntaxProxy({ rootProperty: "remove", callback }), | ||
count: getSyntaxProxy({ rootProperty: "count", callback }), | ||
get: getSyntaxProxy({ rootProperty: "get", callback, replacer }), | ||
set: getSyntaxProxy({ rootProperty: "set", callback, replacer }), | ||
add: getSyntaxProxy({ rootProperty: "add", callback, replacer }), | ||
remove: getSyntaxProxy({ rootProperty: "remove", callback, replacer }), | ||
count: getSyntaxProxy({ rootProperty: "count", callback, replacer }), | ||
// Query types for interacting with the database schema. | ||
create: getSyntaxProxy({ rootProperty: "create", callback }), | ||
alter: getSyntaxProxy({ rootProperty: "alter", callback }), | ||
drop: getSyntaxProxy({ rootProperty: "drop", callback }), | ||
create: getSyntaxProxy({ | ||
rootProperty: "create", | ||
callback, | ||
replacer | ||
}), | ||
alter: getSyntaxProxy({ rootProperty: "alter", callback, replacer }), | ||
drop: getSyntaxProxy({ rootProperty: "drop", callback, replacer }), | ||
// Function for executing a transaction containing multiple queries. | ||
@@ -49,0 +57,0 @@ batch: (operations, queryOptions) => { |
@@ -6,3 +6,3 @@ import { | ||
runQueriesWithStorageAndHooks | ||
} from "../chunk-MTB4U7YJ.js"; | ||
} from "../chunk-TJWXHF5Z.js"; | ||
export { | ||
@@ -9,0 +9,0 @@ InvalidQueryError, |
{ | ||
"name": "ronin", | ||
"version": "6.0.23", | ||
"version": "6.0.24-leo-ron-1099-experimental-48", | ||
"type": "module", | ||
"license": "Apache-2.0", | ||
"description": "Access your RONIN database via TypeScript.", | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"description": "Access your RONIN database via TypeScript.", | ||
"bin": { | ||
"ronin": "./dist/bin/index.js" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
@@ -20,5 +25,2 @@ "dev": "bun run build -- --watch", | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": "ronin-co/client", | ||
@@ -71,13 +73,15 @@ "homepage": "https://ronin.co/docs/typescript-client", | ||
}, | ||
"author": "ronin", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@ronin/cli": "0.2.25", | ||
"@ronin/compiler": "0.14.11", | ||
"@ronin/syntax": "0.2.6" | ||
"@ronin/cli": "0.2.28", | ||
"@ronin/compiler": "0.14.13", | ||
"@ronin/syntax": "0.2.10" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.9.4", | ||
"@types/bun": "1.2.0", | ||
"tsup": "8.3.5", | ||
"@types/bun": "1.2.1", | ||
"tsup": "8.3.6", | ||
"typescript": "5.7.3" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
51397
16
831
1
1
3
+ Added@inquirer/checkbox@4.0.7(transitive)
+ Added@inquirer/confirm@5.1.4(transitive)
+ Added@inquirer/core@10.1.5(transitive)
+ Added@inquirer/editor@4.2.4(transitive)
+ Added@inquirer/expand@4.0.7(transitive)
+ Added@inquirer/figures@1.0.10(transitive)
+ Added@inquirer/input@4.1.4(transitive)
+ Added@inquirer/number@3.0.7(transitive)
+ Added@inquirer/password@4.0.7(transitive)
+ Added@inquirer/rawlist@4.0.7(transitive)
+ Added@inquirer/search@3.0.7(transitive)
+ Added@inquirer/select@4.0.7(transitive)
+ Added@inquirer/type@3.0.3(transitive)
+ Added@ronin/cli@0.2.28(transitive)
+ Added@ronin/compiler@0.14.13(transitive)
+ Added@ronin/syntax@0.2.10(transitive)
+ Added@types/node@22.12.0(transitive)
- Removed@inquirer/checkbox@4.0.6(transitive)
- Removed@inquirer/confirm@5.1.3(transitive)
- Removed@inquirer/core@10.1.4(transitive)
- Removed@inquirer/editor@4.2.3(transitive)
- Removed@inquirer/expand@4.0.6(transitive)
- Removed@inquirer/figures@1.0.9(transitive)
- Removed@inquirer/input@4.1.3(transitive)
- Removed@inquirer/number@3.0.6(transitive)
- Removed@inquirer/password@4.0.6(transitive)
- Removed@inquirer/rawlist@4.0.6(transitive)
- Removed@inquirer/search@3.0.6(transitive)
- Removed@inquirer/select@4.0.6(transitive)
- Removed@inquirer/type@3.0.2(transitive)
- Removed@ronin/cli@0.2.25(transitive)
- Removed@ronin/compiler@0.14.11(transitive)
- Removed@ronin/syntax@0.2.6(transitive)
- Removed@types/node@22.10.10(transitive)
Updated@ronin/cli@0.2.28
Updated@ronin/compiler@0.14.13
Updated@ronin/syntax@0.2.10