Skip to content

Commit fa67117

Browse files
authored
Merge pull request #3170 from SeedCompany/edgedb/bump
2 parents 4121a95 + 6888ea6 commit fa67117

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"cypher-query-builder": "patch:[email protected]#.yarn/patches/cypher-query-builder.patch",
6363
"dotenv": "^16.3.1",
6464
"dotenv-expand": "^10.0.0",
65-
"edgedb": "^1.5.0-canary.20240408T142923",
65+
"edgedb": "^1.5.0",
6666
"execa": "^8.0.1",
6767
"express": "^4.18.2",
6868
"extensionless": "^1.7.0",
@@ -107,7 +107,7 @@
107107
"yaml": "^2.3.3"
108108
},
109109
"devDependencies": {
110-
"@edgedb/generate": "^0.5.0-canary.20240408T143001",
110+
"@edgedb/generate": "^0.5.2",
111111
"@nestjs/cli": "^10.2.1",
112112
"@nestjs/schematics": "^10.0.3",
113113
"@nestjs/testing": "^10.2.7",

src/core/edgedb/edgedb.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { TransactionContext } from './transaction.context';
1818
imports: [EdgeDBSchemaAstModule],
1919
providers: [
2020
{
21-
provide: 'DEFAULT_OPTIONS',
21+
provide: Options,
2222
useValue: Options.defaults().withConfig({
2323
// Bump from 1 min, as needed by test suite.
2424
// It's probably because we open & do more with in the transaction

src/core/edgedb/generator/query-builder.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export async function generateQueryBuilder({
2828
updateEdgeQLRenderingForOurCustomScalars(qbDir);
2929
updateCastMapsForOurCustomScalars(qbDir);
3030
changeImplicitIDType(qbDir);
31-
allowOrderingByEnums(qbDir);
3231
adjustToImmutableTypes(qbDir);
3332
addTypeNarrowingToStdScalars(qbDir);
3433
}
@@ -110,14 +109,6 @@ function updateEdgeQLRenderingForOurCustomScalars(qbDir: Directory) {
110109
file.replaceWithText(updated);
111110
}
112111

113-
function allowOrderingByEnums(qbDir: Directory) {
114-
const file = qbDir.getSourceFileOrThrow('select.ts');
115-
file
116-
.getTypeAliasOrThrow('OrderByExpr')
117-
.setType('TypeSet<EnumType | ScalarType | ObjectType>');
118-
file.fixMissingImports();
119-
}
120-
121112
function adjustToImmutableTypes(qbDir: Directory) {
122113
const typesystem = qbDir.addSourceFileAtPath('typesystem.ts');
123114
replaceText(typesystem.getTypeAliasOrThrow('ArrayTypeToTsType'), (prev) =>

src/core/edgedb/options.context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Inject, Injectable, OnModuleDestroy } from '@nestjs/common';
1+
import { Injectable, OnModuleDestroy } from '@nestjs/common';
22
import { AsyncLocalStorage } from 'async_hooks';
33
import {
44
BehaviorSubject,
@@ -27,7 +27,7 @@ export class OptionsContext
2727
{
2828
private readonly root: OptionsLayer;
2929

30-
constructor(@Inject('DEFAULT_OPTIONS') root: Options) {
30+
constructor(root: Options) {
3131
super();
3232
this.root = {
3333
options$: new BehaviorSubject(root),

yarn.lock

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,14 +1485,16 @@ __metadata:
14851485
languageName: node
14861486
linkType: hard
14871487

1488-
"@edgedb/generate@npm:^0.5.0-canary.20240408T143001":
1489-
version: 0.5.0-canary.20240408T143001
1490-
resolution: "@edgedb/generate@npm:0.5.0-canary.20240408T143001"
1488+
"@edgedb/generate@npm:^0.5.2":
1489+
version: 0.5.2
1490+
resolution: "@edgedb/generate@npm:0.5.2"
1491+
dependencies:
1492+
"@iarna/toml": "npm:^2.2.5"
14911493
peerDependencies:
1492-
edgedb: ^1.4.0
1494+
edgedb: ^1.5.0
14931495
bin:
14941496
generate: dist/cli.js
1495-
checksum: 10c0/c84fe33d109f0f3338ef2a220936fa3417309d3884dc3b5673130f0eeffaa4fd03d16a2dd703fa553e1a374696de3fca6d431dc251c01ddbea38a858fdc82ce9
1497+
checksum: 10c0/98fd2ebd7d6e3e92450148e54e39f75c53966d4b8006b6c14be05e9a4ac06ca7be13fc7615430fe1847bee890cd82d3ee0bdaed46afe4d74455d5e339f9f8a6a
14961498
languageName: node
14971499
linkType: hard
14981500

@@ -1784,6 +1786,13 @@ __metadata:
17841786
languageName: node
17851787
linkType: hard
17861788

1789+
"@iarna/toml@npm:^2.2.5":
1790+
version: 2.2.5
1791+
resolution: "@iarna/toml@npm:2.2.5"
1792+
checksum: 10c0/d095381ad4554aca233b7cf5a91f243ef619e5e15efd3157bc640feac320545450d14b394aebbf6f02a2047437ced778ae598d5879a995441ab7b6c0b2c2f201
1793+
languageName: node
1794+
linkType: hard
1795+
17871796
"@ioredis/commands@npm:^1.1.1":
17881797
version: 1.2.0
17891798
resolution: "@ioredis/commands@npm:1.2.0"
@@ -5316,7 +5325,7 @@ __metadata:
53165325
"@apollo/subgraph": "npm:^2.5.6"
53175326
"@aws-sdk/client-s3": "npm:^3.440.0"
53185327
"@aws-sdk/s3-request-presigner": "npm:^3.440.0"
5319-
"@edgedb/generate": "npm:^0.5.0-canary.20240408T143001"
5328+
"@edgedb/generate": "npm:^0.5.2"
53205329
"@faker-js/faker": "npm:^8.2.0"
53215330
"@ffprobe-installer/ffprobe": "npm:^2.1.2"
53225331
"@golevelup/nestjs-discovery": "npm:^4.0.0"
@@ -5368,7 +5377,7 @@ __metadata:
53685377
debugger-is-attached: "npm:^1.2.0"
53695378
dotenv: "npm:^16.3.1"
53705379
dotenv-expand: "npm:^10.0.0"
5371-
edgedb: "npm:^1.5.0-canary.20240408T142923"
5380+
edgedb: "npm:^1.5.0"
53725381
eslint: "npm:^8.52.0"
53735382
eslint-plugin-no-only-tests: "npm:^3.1.0"
53745383
eslint-plugin-typescript-sort-keys: "npm:^2.3.0"
@@ -5962,17 +5971,17 @@ __metadata:
59625971
languageName: node
59635972
linkType: hard
59645973

5965-
"edgedb@npm:^1.5.0-canary.20240408T142923":
5966-
version: 1.5.0-canary.20240408T142923
5967-
resolution: "edgedb@npm:1.5.0-canary.20240408T142923"
5974+
"edgedb@npm:^1.5.0":
5975+
version: 1.5.0
5976+
resolution: "edgedb@npm:1.5.0"
59685977
dependencies:
59695978
debug: "npm:^4.3.4"
59705979
env-paths: "npm:^3.0.0"
59715980
semver: "npm:^7.6.0"
59725981
which: "npm:^4.0.0"
59735982
bin:
59745983
edgedb: dist/cli.mjs
5975-
checksum: 10c0/00ebb31762a533c9c277a2bc088eaf1c11ba8993c9e0bf8a4c0c20bf4f31d25e0d6530235fffb87ec4ed9f0879e1a5b408cb053e90c2c30ac9366087d3b127ef
5984+
checksum: 10c0/2fb5f1e6712632ca847027e10a6da3aba044d8ca3b85b744beaa8ef00e711553b71628826b5dc507d3831699d484e794e819639e787dbc1d282612afbc631022
59765985
languageName: node
59775986
linkType: hard
59785987

0 commit comments

Comments
 (0)