Skip to content

Commit

Permalink
chore(deps): update all non-major dependencies (#167)
Browse files Browse the repository at this point in the history
* chore(deps): update all non-major dependencies

* Lint

* Update syntax

* Update import assertion

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Matt Kane <[email protected]>
  • Loading branch information
renovate[bot] and ascorbic authored Nov 8, 2024
1 parent c1e6fb8 commit 4a6b2cc
Show file tree
Hide file tree
Showing 23 changed files with 2,156 additions and 1,808 deletions.
6 changes: 5 additions & 1 deletion apps/website/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ export default defineNuxtConfig({
devtools: { enabled: true },
srcDir: "src",
css: ["~/assets/main.css"],

postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},

app: {
head: {
charset: "utf8",
Expand All @@ -23,4 +25,6 @@ export default defineNuxtConfig({
],
},
},
});

compatibilityDate: "2024-11-08",
});
6 changes: 3 additions & 3 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
},
"dependencies": {
"@nuxt/devtools": "latest",
"nuxt": "^3.13.2",
"nuxt": "^3.14.159",
"runtime-compat-data": "workspace:^"
},
"devDependencies": {
"@nuxt/eslint-config": "^0.5.7",
"@nuxt/eslint-config": "^0.6.1",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.47",
"tailwind-scrollbar": "^3.1.0",
"tailwindcss": "^3.4.11"
"tailwindcss": "^3.4.14"
}
}
3 changes: 2 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export default unjs({
"coverage/*",
"**/dist/*",
"vendor/*",
"tailwind.config.js",
"**/tailwind.config.js",
"**/.nuxt/*",
"**/.output/*",
],
});
2 changes: 1 addition & 1 deletion generator/runtimes/bun/run.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { runTests, formatResults } from "../../shared/test.js";
import tests from "../../../vendor/tests.json" assert { type: "json" };
import tests from "../../../vendor/tests.json" with { type: "json" };

const results = await runTests(tests);
const data = formatResults(
Expand Down
2 changes: 1 addition & 1 deletion generator/runtimes/deno/run.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { runTests, formatResults } from "../../shared/test.ts";
import tests from "../../../vendor/tests.json" assert { type: "json" };
import tests from "../../../vendor/tests.json" with { type: "json" };
import { gpu } from "../../shared/features.ts";

const results = await runTests(tests, gpu);
Expand Down
4 changes: 2 additions & 2 deletions generator/runtimes/edge-light/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "MIT",
"devDependencies": {
"unbuild": "^2.0.0",
"typescript": "^5.6.2"
"typescript": "^5.6.3"
},
"unbuild": {
"entries": [
Expand All @@ -30,6 +30,6 @@
}
},
"dependencies": {
"edge-runtime": "^3.0.3"
"edge-runtime": "^3.0.5"
}
}
6 changes: 3 additions & 3 deletions generator/runtimes/edge-light/run.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EdgeRuntime } from "edge-runtime";
import { runTests, formatResults } from "../../shared/test.js";
import tests from "../../../vendor/tests.json" assert { type: "json" };
import packageJson from "./package.json" assert { type: "json" };
import tests from "../../../vendor/tests.json" with { type: "json" };
import packageJson from "./package.json" with { type: "json" };
const runtime = new EdgeRuntime();
globalThis.eval = runtime.evaluate.bind(runtime);

Expand All @@ -10,7 +10,7 @@ const data = formatResults(
results,
{
name: "edge-light",
version: packageJson.dependencies["edge-runtime"].replace(/^(\^|~)/, '')
version: packageJson.dependencies["edge-runtime"].replace(/^(\^|~)/, ""),
},
tests.__version,
);
Expand Down
9 changes: 6 additions & 3 deletions generator/runtimes/fastly/handler.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/// <reference types="@fastly/js-compute" />

import { runTests, formatResults } from "../../shared/test.js";
import tests from "../../../vendor/tests.json" assert { type: "json" };
import packageJson from "./package.json" assert { type: "json" };
import tests from "../../../vendor/tests.json" with { type: "json" };
import packageJson from "./package.json" with { type: "json" };
// eslint-disable-next-line no-undef
addEventListener("fetch", (event) => event.respondWith(handleRequest(event)));

Expand All @@ -16,7 +16,10 @@ async function handleRequest(event: FetchEvent) {
results,
{
name: "fastly",
version: packageJson.dependencies["@fastly/js-compute"].replace(/^(\^|~)/, '')
version: packageJson.dependencies["@fastly/js-compute"].replace(
/^(\^|~)/,
"",
),
},
tests.__version,
);
Expand Down
2 changes: 1 addition & 1 deletion generator/runtimes/fastly/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"type": "module",
"dependencies": {
"@fastly/js-compute": "^3.22.4",
"@fastly/js-compute": "^3.26.0",
"unbuild": "^2.0.0",
"start-server-and-test": "^2.0.8"
},
Expand Down
2 changes: 1 addition & 1 deletion generator/runtimes/llrt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"license": "MIT",
"devDependencies": {
"unbuild": "^2.0.0",
"typescript": "^5.6.2"
"typescript": "^5.6.3"
},
"unbuild": {
"entries": [
Expand Down
4 changes: 2 additions & 2 deletions generator/runtimes/netlify/netlify/edge-functions/handler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { runTests, formatResults } from "../../../../shared/test.ts";
import tests from "../../../../../vendor/tests.json" assert { type: "json" };
import tests from "../../../../../vendor/tests.json" with { type: "json" };
import { alerts, gpu, storage } from "../../../../shared/features.ts";

export default async function handler(request: Request) {
Expand All @@ -9,7 +9,7 @@ export default async function handler(request: Request) {
const results = await runTests(tests, [...gpu, ...storage, ...alerts]);
const data = formatResults(
results,
{ name: "netlify", version: Netlify.env.get('NETLIFY_CLI_VERSION') },
{ name: "netlify", version: Netlify.env.get("NETLIFY_CLI_VERSION") },
tests.__version,
);
return new Response(JSON.stringify(data, undefined, 2));
Expand Down
2 changes: 1 addition & 1 deletion generator/runtimes/netlify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"start-server-and-test": "^2.0.8",
"netlify-cli": "^17.36.0"
"netlify-cli": "^17.37.2"
},
"keywords": [],
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion generator/runtimes/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"license": "MIT",
"devDependencies": {
"unbuild": "^2.0.0",
"typescript": "^5.6.2"
"typescript": "^5.6.3"
},
"unbuild": {
"entries": [
Expand Down
2 changes: 1 addition & 1 deletion generator/runtimes/wasmer/handler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { runTests, formatResults } from "../../shared/test.js";
import tests from "../../../vendor/tests.json" assert { type: "json" };
import tests from "../../../vendor/tests.json" with { type: "json" };
addEventListener("fetch", (event) => event.respondWith(handleRequest(event)));

async function handleRequest(event: FetchEvent) {
Expand Down
4 changes: 2 additions & 2 deletions generator/runtimes/workerd/handler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Request as WorkerRequest } from "@cloudflare/workers-types/experimental";
import { runTests, formatResults } from "../../shared/test.js";
import tests from "../../../vendor/tests.json" assert { type: "json" };
import packageJson from "./package.json" assert { type: "json" };
import tests from "../../../vendor/tests.json" with { type: "json" };
import packageJson from "./package.json" with { type: "json" };

interface Env {
unsafe: {
Expand Down
6 changes: 3 additions & 3 deletions generator/runtimes/workerd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@cloudflare/workers-types": "^4.20240909.0",
"@cloudflare/workers-types": "^4.20241106.0",
"unbuild": "^2.0.0",
"typescript": "^5.6.2",
"workerd": "^1.20240909.0",
"typescript": "^5.6.3",
"workerd": "^1.20241106.1",
"start-server-and-test": "^2.0.8"
},
"unbuild": {
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"website": "pnpm run --filter \"website\" dev"
},
"devDependencies": {
"@mdn/browser-compat-data": "^5.5.51",
"@types/node": "^20.16.5",
"automd": "^0.3.8",
"eslint": "^8.57.0",
"eslint-config-unjs": "^0.3.2",
"@mdn/browser-compat-data": "^5.6.14",
"@types/node": "^20.17.6",
"automd": "^0.3.12",
"eslint": "^8.57.1",
"eslint-config-unjs": "^0.4.1",
"prettier": "^3.3.3"
},
"packageManager": "pnpm@9.10.0"
"packageManager": "pnpm@9.12.3"
}
8 changes: 4 additions & 4 deletions packages/runtime-compat-data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ bun install runtime-compat-data

```js
// ESM with Import Assertions (Node.js 16+)
import data from "runtime-compat-data" assert { type: "json" };
import data from "runtime-compat-data" with { type: "json" };
// ...or...
const { default: data } = await import("runtime-compat-data", {
assert: { type: "json" },
with: { type: "json" },
});
// ...or...

Expand All @@ -77,12 +77,12 @@ const data = require("runtime-compat-data");
For Deno or the browser, you can load the data from a CDN:

```js
import data from "https://unpkg.com/runtime-compat-data" assert { type: "json" };
import data from "https://unpkg.com/runtime-compat-data" with { type: "json" };
// ...or...
const { default: data } = await import(
"https://unpkg.com/runtime-compat-data",
{
assert: { type: "json" },
with: { type: "json" },
}
);
```
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-compat-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"author": "Matt Kane <[email protected]>",
"license": "CC0-1.0",
"devDependencies": {
"vitest": "^2.1.2"
"vitest": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion packages/runtime-compat-data/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable yield-star-spacing */
import { readdir } from "node:fs/promises";
import { expect, it, describe } from "vitest";
import data from ".." assert { type: "json" };
import data from ".." with { type: "json" };

function* walk(obj: any, path: string[] = []): Generator<[string[], any]> {
for (const key in obj) {
Expand Down
Loading

0 comments on commit 4a6b2cc

Please sign in to comment.