Skip to content
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
48 changes: 47 additions & 1 deletion .github/workflows/update_deps.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,50 @@ export async function getUpdates() {
console.log('\n\n');
}
}
const cloudflareVersion = await latestVersion(
'@cloudflare/workers-types',
'latest',
);
const cloudflareDate = cloudflareVersion.split('.')[1];
if (!cloudflareDate || !/^[0-9]{8}$/.test(cloudflareDate)) {
console.error(
`Invalid @cloudflare/workers-types version: ${cloudflareVersion}`,
);
process.exit(1);
}
const compatibilityDate = `${cloudflareDate.substring(
0,
4,
)}-${cloudflareDate.substring(4, 6)}-${cloudflareDate.substring(6, 8)}`;

let changedFiles = [];
for await (const f of getFiles(templateRoot)) {
const groups = basename(f).match(/^(\{[^{}]*\})?wrangler\.jsonc$/);

if (!groups) continue;
const wrangler = await import(f, { assert: { type: 'jsonc' } });

const oldVersion = wrangler.compatibility_date;

if (oldVersion !== compatibilityDate) {
if (!dryRun) {
const text = (await readFile(f, 'utf8')).replace(
`"${oldVersion}"`,
`"${compatibilityDate}"`,
);
await writeFile(f, text);
}
changedFiles.push([prettifyFeatures(groups[1]), oldVersion]);
}
}
if (changedFiles.length) {
console.log(`| \`compatibility_date\` | old | new |`);
console.log('|-|-|-|');
for (const [name, oldVersion] of changedFiles) {
console.log(`| ${name} | \`${oldVersion}\` | \`${compatibilityDate}\` |`);
}
console.log('\n\n');
}
}

/**
Expand All @@ -110,7 +154,9 @@ async function latestVersion(packageName, tag) {
const data = await res.json();

if (packageName === 'tailwindcss' && tag === '3') {
const v3Versions = Object.keys(data?.versions ?? {}).filter(v => Bun.semver.satisfies(v, '3')).sort(Bun.semver.order);
const v3Versions = Object.keys(data?.versions ?? {})
.filter((v) => Bun.semver.satisfies(v, '3'))
.sort(Bun.semver.order);
const mostRecent = v3Versions[v3Versions.length - 1];
return mostRecent;
}
Expand Down
1 change: 1 addition & 0 deletions .ottotime
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
1740603160- 12:56
1740606231- 0:14
1740688246- 0:30
1741307017- 14:15
83 changes: 51 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "create-o7-app"
authors = ["Ottomated"]
version = "0.10.6"
version = "0.10.7"
edition = "2021"

[dependencies]
Expand Down
20 changes: 10 additions & 10 deletions template_builder/templates/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@
},
"dependencies": {},
"devDependencies": {
"@eslint/js": "^9.21.0",
"@eslint/js": "^9.22.0",
"@sveltejs/adapter-auto": "^4.0.0",
"@sveltejs/kit": "^2.18.0",
"@sveltejs/kit": "^2.19.0",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"autoprefixer": "^10.4.20",
"eslint": "^9.21.0",
"eslint-config-prettier": "^10.0.2",
"autoprefixer": "^10.4.21",
"eslint": "^9.22.0",
"eslint-config-prettier": "^10.1.1",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-svelte": "^3.0.3",
"eslint-plugin-svelte": "^3.1.0",
"globals": "^16.0.0",
"postcss": "^8.5.3",
"postcss-load-config": "^6.0.1",
"prettier": "^3.5.3",
"prettier-plugin-svelte": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.11",
"svelte": "^5.22.2",
"svelte-check": "^4.1.4",
"svelte": "^5.22.6",
"svelte-check": "^4.1.5",
"tailwindcss": "^3.4.17",
"typescript": "~5.8.2",
"typescript-eslint": "^8.26.0",
"vite": "^6.2.0"
"typescript-eslint": "^8.26.1",
"vite": "^6.2.1"
},
"pnpm": {
"onlyBuiltDependencies": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"hono": "^4.7.4"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250303.0",
"@cloudflare/workers-types": "^4.20250311.0",
"typescript": "^5.8.2",
"wrangler": "^3.112.0"
"wrangler": "^3.114.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"hono": "^4.7.4"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250303.0",
"@cloudflare/workers-types": "^4.20250311.0",
"typescript": "^5.8.2",
"wrangler": "^3.112.0"
"wrangler": "^3.114.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "node_modules/wrangler/config-schema.json",
"name": "__o7__name__-worker",
"main": "src/worker.ts",
"compatibility_date": "2025-02-24",
"compatibility_date": "2025-03-11",
"durable_objects": {
"bindings": [
{
Expand Down
2 changes: 1 addition & 1 deletion template_builder/templates/extras/{Auth}package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"arctic": "^3.4.0",
"arctic": "^3.5.0",
"@oslojs/crypto": "^1.0.1",
"@oslojs/encoding": "^1.1.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"devDependencies": {
"prisma-kysely": "^1.8.0",
"prisma": "^6.4.1"
"prisma": "^6.5.0"
},
"pnpm": {
"onlyBuiltDependencies": [
Expand Down
Loading
Loading