Skip to content

Commit

Permalink
chore(deps): Upgrade dependencies (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
koistya authored Jun 25, 2023
1 parent 2dff75e commit 3d88cb7
Show file tree
Hide file tree
Showing 12 changed files with 2,500 additions and 2,460 deletions.
877 changes: 0 additions & 877 deletions .yarn/releases/yarn-4.0.0-rc.45.cjs

This file was deleted.

879 changes: 879 additions & 0 deletions .yarn/releases/yarn-4.0.0-rc.46.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarn/sdks/eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint",
"version": "8.42.0-sdk",
"version": "8.43.0-sdk",
"main": "./lib/api.js",
"type": "commonjs"
}
5 changes: 1 addition & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ enableGlobalCache: true
nodeLinker: pnp

packageExtensions:
"@miniflare/r2@*":
dependencies:
"@miniflare/core": ^2.14.0
babel-plugin-relay@*:
dependencies:
"@babel/runtime": ^7.22.5
Expand All @@ -15,4 +12,4 @@ packageExtensions:

pnpEnableEsmLoader: true

yarnPath: .yarn/releases/yarn-4.0.0-rc.45.cjs
yarnPath: .yarn/releases/yarn-4.0.0-rc.46.cjs
8 changes: 4 additions & 4 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"api:build": "yarn workspace api run build"
},
"dependencies": {
"@google-cloud/functions-framework": "^3.2.0",
"@google-cloud/functions-framework": "^3.2.1",
"@google-cloud/storage": "^6.11.0",
"@sendgrid/mail": "^7.7.0",
"cookie": "^0.5.0",
Expand All @@ -31,7 +31,7 @@
"gm": "^1.25.0",
"google-auth-library": "^8.8.0",
"got": "^13.0.0",
"graphql": "^16.6.0",
"graphql": "^16.7.1",
"graphql-http": "^1.19.0",
"graphql-relay": "^0.10.0",
"handlebars": "^4.7.7",
Expand Down Expand Up @@ -59,7 +59,7 @@
"@types/gm": "^1.25.1",
"@types/http-errors": "^2.0.1",
"@types/lodash-es": "^4.17.7",
"@types/node": "^18.16.18",
"@types/node": "^20.3.1",
"@types/pg": "^8.10.2",
"@types/source-map-support": "^0.5.6",
"@types/supertest": "^2.0.12",
Expand All @@ -73,7 +73,7 @@
"vite": "^4.3.9",
"vite-plugin-node": "^3.0.2",
"vite-plugin-static-copy": "^0.16.0",
"vitest": "^0.32.0"
"vitest": "^0.32.2"
},
"envars": {
"cwd": "../env"
Expand Down
18 changes: 9 additions & 9 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,28 @@
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.11.16",
"@mui/lab": "^5.0.0-alpha.134",
"@mui/material": "^5.13.5",
"firebase": "^9.22.2",
"@mui/material": "^5.13.6",
"firebase": "^9.23.0",
"js-cookie": "^3.0.5",
"localforage": "^1.10.0",
"notistack": "^3.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-relay": "15.0.0",
"react-router-dom": "^6.13.0",
"react-router-dom": "^6.14.0",
"recoil": "^0.7.7",
"relay-runtime": "^15.0.0"
},
"devDependencies": {
"@emotion/babel-plugin": "^11.11.0",
"@types/js-cookie": "^3.0.3",
"@types/node": "^18.16.18",
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"@types/node": "^20.3.1",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@types/react-relay": "^14.1.4",
"@types/relay-compiler": "^14.0.1",
"@types/relay-runtime": "^14.1.10",
"@vitejs/plugin-react": "^4.0.0",
"@types/relay-runtime": "^14.1.11",
"@vitejs/plugin-react": "^4.0.1",
"babel-plugin-relay": "^15.0.0",
"envars": "^0.4.0",
"happy-dom": "^9.20.3",
Expand All @@ -53,7 +53,7 @@
"typescript": "~5.1.3",
"vite": "^4.3.9",
"vite-plugin-relay": "^2.0.0",
"vitest": "^0.32.0"
"vitest": "^0.32.2"
},
"envars": {
"cwd": "../env"
Expand Down
7 changes: 5 additions & 2 deletions app/public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# www.robotstxt.org/

# Allow crawling of all content
# https://moz.com/learn/seo/robotstxt
User-agent: *
Disallow:

# The list of website pages
# https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview
Sitemap: /sitemap.xml
20 changes: 11 additions & 9 deletions edge/core/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ export const app = new Hono<Env>();

// Configure environment variables for review deployments
app.use("*", async function (ctx, next) {
const { hostname } = new URL(ctx.req.url);
const { hostname, pathname } = new URL(ctx.req.url);

// Block all web crawlers from non-production deployments
// https://moz.com/learn/seo/robotstxt
if (
pathname === "/robots.txt" &&
ctx.env.APP_ENV !== "prod" &&
ctx.req.method === "GET"
) {
return ctx.text("User-agent: *\nDisallow: /\n");
}

// Resolve the review deployment version (PR number), for example:
// `https://example.com` => null
Expand All @@ -36,14 +46,6 @@ app.use("*", async function (ctx, next) {
await next();
});

// Block all web crawlers from non-production deployments
// https://moz.com/learn/seo/robotstxt
app.get("/robots.txt", function (ctx) {
return ctx.env.APP_ENV === "prod"
? fetch(ctx.req.url, ctx.req)
: ctx.text("User-agent: *\nDisallow: /\n");
});

app.onError((err, ctx) => {
console.error(err.stack);
return ctx.text(err.stack ?? "Application error", 500, {
Expand Down
6 changes: 3 additions & 3 deletions edge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@
"dependencies": {
"@hono/zod-validator": "^0.1.3",
"ejs": "^3.1.9",
"hono": "^3.2.5",
"hono": "^3.2.6",
"jose": "^4.14.4",
"web-auth-library": "^1.0.3",
"zod": "^3.21.4"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230518.0",
"@types/ejs": "^3.1.2",
"@types/node": "^18.16.18",
"@types/node": "^20.3.1",
"happy-dom": "^9.20.3",
"toml": "^3.0.0",
"typescript": "~5.1.3",
"vite": "^4.3.9",
"vitest": "^0.32.0",
"vitest": "^0.32.2",
"vitest-environment-miniflare": "^2.14.0"
}
}
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"type": "module",
"packageManager": "[email protected].45",
"packageManager": "[email protected].46",
"workspaces": [
"api",
"app",
Expand All @@ -28,26 +28,27 @@
"@emotion/babel-plugin": "^11.11.0",
"@emotion/eslint-plugin": "^11.11.0",
"@emotion/react": "^11.11.1",
"@types/node": "^18.16.18",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"@types/node": "^20.3.1",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"envars": "^0.4.0",
"eslint": "^8.42.0",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"graphql": "^16.7.1",
"graphql-config": "^5.0.2",
"happy-dom": "^9.20.3",
"husky": "^8.0.3",
"prettier": "^2.8.8",
"react": "^18.2.0",
"relay-config": "^12.0.1",
"typescript": "~5.1.3",
"vitest": "^0.32.0",
"wrangler": "^3.1.0",
"vitest": "^0.32.2",
"wrangler": "^3.1.1",
"zx": "^7.2.2"
},
"envars": {
Expand Down
9 changes: 5 additions & 4 deletions scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@
"@babel/core": "^7.22.5",
"@babel/register": "^7.22.5",
"@google-cloud/storage": "^6.11.0",
"@octokit/rest": "^19.0.11",
"@octokit/rest": "^19.0.13",
"@types/cross-spawn": "^6.0.2",
"@types/node": "^20.3.1",
"api": "workspace:*",
"cross-spawn": "^7.0.3",
"dotenv": "^16.2.0",
"dotenv": "^16.3.1",
"envars": "^0.4.0",
"execa": "^7.1.1",
"globby": "^13.1.4",
"globby": "^13.2.0",
"got": "^13.0.0",
"inquirer": "^9.2.7",
"lodash-es": "^4.17.21",
Expand All @@ -31,7 +32,7 @@
"toml": "^3.0.0",
"ts-node": "^10.9.1",
"typescript": "~5.1.3",
"wrangler": "^3.1.0",
"wrangler": "^3.1.1",
"zx": "^7.2.2"
},
"envars": {
Expand Down
Loading

0 comments on commit 3d88cb7

Please sign in to comment.