Skip to content

Commit 8a06903

Browse files
committed
versions
1 parent 39a79dd commit 8a06903

File tree

3 files changed

+58
-23
lines changed

3 files changed

+58
-23
lines changed

full/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@yamlize/cli": "^0.8.0"
3838
},
3939
"dependencies": {
40-
"@pgsql/types": "^17.4.2",
40+
"@pgsql/types": "^17.6.0",
4141
"@launchql/protobufjs": "7.2.6"
4242
},
4343
"keywords": [

pnpm-lock.yaml

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/update-versions-types.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,41 @@ versionDirs.forEach(version => {
8282
updatedCount++;
8383
});
8484

85+
// Also update the full package (which uses PostgreSQL 17)
86+
console.log('\n📦 Checking full package...');
87+
const fullPackageJsonPath = path.join(__dirname, '..', 'full', 'package.json');
88+
89+
if (fs.existsSync(fullPackageJsonPath)) {
90+
const fullPackageJson = JSON.parse(fs.readFileSync(fullPackageJsonPath, 'utf8'));
91+
const targetTypeVersion = typeVersions['17']; // Full package uses PG 17
92+
93+
if (targetTypeVersion) {
94+
const currentTypeVersion = fullPackageJson.dependencies?.['@pgsql/types'];
95+
const expectedTypeVersion = `^${targetTypeVersion}`;
96+
97+
if (currentTypeVersion === expectedTypeVersion) {
98+
console.log(`✅ Full package: @pgsql/types already up to date (${currentTypeVersion})`);
99+
} else {
100+
// Update the dependency
101+
if (!fullPackageJson.dependencies) {
102+
fullPackageJson.dependencies = {};
103+
}
104+
105+
fullPackageJson.dependencies['@pgsql/types'] = expectedTypeVersion;
106+
107+
// Write back the updated package.json
108+
fs.writeFileSync(
109+
fullPackageJsonPath,
110+
JSON.stringify(fullPackageJson, null, 2) + '\n',
111+
'utf8'
112+
);
113+
114+
console.log(`📦 Full package: Updated @pgsql/types from ${currentTypeVersion || 'none'} to ${expectedTypeVersion}`);
115+
updatedCount++;
116+
}
117+
}
118+
}
119+
85120
console.log(`\n✨ Updated ${updatedCount} package(s)`);
86121

87122
if (updatedCount > 0) {

0 commit comments

Comments
 (0)