Comparing version 5.3.15 to 5.4.0-corny-ron-1071-experimental-453
@@ -31,47 +31,26 @@ import { | ||
import { getBatchProxy, getSyntaxProxy } from "@ronin/syntax/queries"; | ||
var createSyntaxFactory = (options) => ({ | ||
// Query types for interacting with records. | ||
get: getSyntaxProxy( | ||
"get", | ||
(query, queryOptions) => queryHandler(query, mergeOptions(options, queryOptions)) | ||
), | ||
set: getSyntaxProxy( | ||
"set", | ||
(query, queryOptions) => queryHandler(query, mergeOptions(options, queryOptions)) | ||
), | ||
add: getSyntaxProxy( | ||
"add", | ||
(query, queryOptions) => queryHandler(query, mergeOptions(options, queryOptions)) | ||
), | ||
remove: getSyntaxProxy( | ||
"remove", | ||
(query, queryOptions) => queryHandler(query, mergeOptions(options, queryOptions)) | ||
), | ||
count: getSyntaxProxy( | ||
"count", | ||
(query, queryOptions) => queryHandler(query, mergeOptions(options, queryOptions)) | ||
), | ||
// Query types for interacting with the database schema. | ||
create: getSyntaxProxy( | ||
"create", | ||
(query, queryOptions) => queryHandler(query, mergeOptions(options, queryOptions)) | ||
), | ||
alter: getSyntaxProxy( | ||
"alter", | ||
(query, queryOptions) => queryHandler(query, mergeOptions(options, queryOptions)) | ||
), | ||
drop: getSyntaxProxy( | ||
"drop", | ||
(query, queryOptions) => queryHandler(query, mergeOptions(options, queryOptions)) | ||
), | ||
// Function for executing a transaction containing multiple queries. | ||
batch: (operations, batchQueryOptions) => getBatchProxy( | ||
operations, | ||
batchQueryOptions, | ||
(queries, queryOptions) => queriesHandler( | ||
queries.map(({ query }) => query), | ||
mergeOptions(options, batchQueryOptions, queryOptions) | ||
var createSyntaxFactory = (options) => { | ||
const callback = (query, queryOptions) => queryHandler(query, mergeOptions(options, queryOptions)); | ||
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 }), | ||
// Query types for interacting with the database schema. | ||
create: getSyntaxProxy({ rootProperty: "create", callback }), | ||
alter: getSyntaxProxy({ rootProperty: "alter", callback }), | ||
drop: getSyntaxProxy({ rootProperty: "drop", callback }), | ||
// Function for executing a transaction containing multiple queries. | ||
batch: (operations, batchQueryOptions) => getBatchProxy( | ||
operations, | ||
batchQueryOptions, | ||
(queries, queryOptions) => queriesHandler( | ||
queries.map(({ structure }) => structure), | ||
mergeOptions(options, batchQueryOptions, queryOptions) | ||
) | ||
) | ||
) | ||
}); | ||
}; | ||
}; | ||
@@ -78,0 +57,0 @@ // src/index.ts |
{ | ||
"name": "ronin", | ||
"version": "5.3.15", | ||
"version": "5.4.0-corny-ron-1071-experimental-453", | ||
"type": "module", | ||
@@ -71,5 +71,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@ronin/cli": "0.2.11", | ||
"@ronin/cli": "0.2.12", | ||
"@ronin/compiler": "0.13.9", | ||
"@ronin/syntax": "0.1.8" | ||
"@ronin/syntax": "0.1.11" | ||
}, | ||
@@ -76,0 +76,0 @@ "devDependencies": { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
67796
1216
1
+ Added@ronin/cli@0.2.12(transitive)
+ Added@ronin/syntax@0.1.11(transitive)
- Removed@ronin/cli@0.2.11(transitive)
- Removed@ronin/compiler@0.13.3(transitive)
- Removed@ronin/syntax@0.1.8(transitive)
Updated@ronin/cli@0.2.12
Updated@ronin/syntax@0.1.11