Skip to content

Commit

Permalink
fix sentry source maps (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
quisido committed Jun 15, 2024
1 parent 4b94c82 commit 73213ec
Show file tree
Hide file tree
Showing 66 changed files with 5,927 additions and 4,751 deletions.
40 changes: 38 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ jobs:
SENTRY_PROJECT: quisi-do
with:
environment: production
sourcemaps: build
sourcemaps: packages/next/out
version: ${{ github.sha }}

# Stage 5: cloudflare-purge, github-packages, wrangler-deploy-*
Expand Down Expand Up @@ -493,7 +493,7 @@ jobs:
yarn run publish;
wrangler-deploy-authn:
name: Wrangler deploy Authentication
name: Wrangler deploy (Authentication)
needs: [lighthouse-ci, npm, prepublish-applications]
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -528,6 +528,42 @@ jobs:
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_EDIT_WORKERS_API_TOKEN }}

wrangler-deploy-csp:
name: Wrangler deploy (Content Security Policy)
needs: [lighthouse-ci, npm, prepublish-applications]
runs-on: ubuntu-latest
env:
DD_ENV: ci
services:
datadog-agent:
image: datadog/agent:latest
env:
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
DD_HOSTNAME: none
DD_INSIDE_CI: true
ports:
- 8126:8126
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: yarn
check-latest: true
node-version: 'lts/*'
- name: Install dependencies
run: yarn install --immutable
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: prepack
path: packages/
- name: Deploy
run: yarn packages/csp run production:deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_EDIT_WORKERS_API_TOKEN }}

# Stage 6: lighthouse-production
lighthouse-production:
name: Lighthouse (production)
Expand Down
610 changes: 305 additions & 305 deletions .yarn/releases/yarn-4.2.2.cjs → .yarn/releases/yarn-4.3.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ packageExtensions:
dependencies:
prop-types: ^15.0.0

yarnPath: .yarn/releases/yarn-4.2.2.cjs
yarnPath: .yarn/releases/yarn-4.3.0.cjs
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "quisi.do <[email protected]>",
"description": "quisi.do",
"homepage": "https://quisi.do/",
"packageManager": "yarn@4.2.2",
"packageManager": "yarn@4.3.0",
"private": true,
"repository": "github:quisido/quisi.do",
"type": "module",
Expand Down Expand Up @@ -46,7 +46,7 @@
"serve": "yarn packages/next run serve",
"start": "echo \"Please use either `yarn run dev` or `yarn run serve` instead.\" && exit 1",
"test": "monorepo-template-test",
"up": "yarn up \"@!(monorepo-template|quisido)/*\" \"!(aws-rum-react|cjs-ts|fmrs|fullstory-react|lazy-i18n|mock-next-router|number-format-react|proposal-async-context|react-datadog|sentry-react|unknown2string|use-shallow-memo)\" && yarn up --recursive \"@*/*\" \"*\" && yarn sdks vscode",
"up": "yarn up \"@!(monorepo-template|quisido)/*\" \"!(aws-rum-react|cjs-ts|cloudflare-utils|fmrs|fullstory-react|lazy-i18n|mock-next-router|number-format-react|proposal-async-context|react-datadog|sentry-react|unknown2string|use-shallow-memo)\" && yarn up --recursive \"@*/*\" \"*\" && yarn sdks vscode",
"vitest": "vitest",
"vitest:run": "exit 0 || vitest run",
"vitest:watch": "vitest watch"
Expand All @@ -56,10 +56,10 @@
],
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"@babel/preset-typescript": "^7.24.1",
"@eslint/js": "^9.1.1",
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@eslint/js": "^9.5.0",
"@microsoft/eslint-formatter-sarif": "^3.1.0",
"@monorepo-template/test": "workspace:^",
"@quisido/eslint-config": "workspace:^",
Expand All @@ -68,23 +68,23 @@
"@types/babel__preset-env": "^7.9.6",
"@types/eslint": "^8.56.10",
"@types/eslint__js": "^8.42.3",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "patch:@typescript-eslint/eslint-plugin@npm%3A7.7.0#~/.yarn/patches/@typescript-eslint-eslint-plugin-npm-7.7.0-de43f1e757.patch",
"@typescript-eslint/parser": "^7.7.0",
"@types/node": "^20.14.2",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"@vitest/coverage-istanbul": "^1.6.0",
"@yarnpkg/sdks": "^3.1.0",
"@yarnpkg/sdks": "^3.1.3",
"babel-plugin-replace-import-extension": "^1.1.4",
"browserslist": "^4.23.0",
"browserslist": "^4.23.1",
"cjs-ts": "workspace:^",
"concurrently": "^8.2.2",
"dd-trace": "^5.10.0",
"eslint": "^9.1.1",
"dd-trace": "^5.17.0",
"eslint": "^9.5.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"prettier": "^3.2.5",
"eslint-plugin-react": "^7.34.2",
"prettier": "^3.3.2",
"typescript": "^5.4.5",
"typescript-eslint": "patch:typescript-eslint@npm%3A7.7.0#~/.yarn/patches/typescript-eslint-npm-7.7.0-1c6d9ccc41.patch",
"typescript-eslint": "^7.13.0",
"vitest": "^1.6.0"
},
"resolutions": {
Expand Down
22 changes: 11 additions & 11 deletions packages/authn-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,28 @@
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@microsoft/eslint-formatter-sarif": "^3.1.0",
"@quisido/eslint-config": "workspace:^",
"@quisido/vitest-config": "workspace:^",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "patch:@typescript-eslint/eslint-plugin@npm%3A7.7.0#~/.yarn/patches/@typescript-eslint-eslint-plugin-npm-7.7.0-de43f1e757.patch",
"@typescript-eslint/parser": "^7.7.0",
"@types/node": "^20.14.2",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"@vitest/coverage-istanbul": "^1.6.0",
"babel-plugin-replace-import-extension": "^1.1.4",
"cjs-ts": "workspace:^",
"concurrently": "^8.2.2",
"eslint": "^9.1.1",
"eslint": "^9.5.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.5",
"tslib": "^2.6.2",
"prettier": "^3.3.2",
"tslib": "^2.6.3",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite": "^5.3.1",
"vitest": "^1.6.0"
}
}
20 changes: 10 additions & 10 deletions packages/authn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@
"cloudflare-utils": "workspace:^",
"cookie": "^0.6.0",
"fmrs": "workspace:^",
"form-urlencoded": "^6.1.4",
"form-urlencoded": "^6.1.5",
"proposal-async-context": "https://github.com/tc39/proposal-async-context",
"tslib": "^2.6.2"
"tslib": "^2.6.3"
},
"devDependencies": {
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@cloudflare/workers-types": "^4.20240512.0",
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@cloudflare/workers-types": "^4.20240614.0",
"@microsoft/eslint-formatter-sarif": "^3.1.0",
"@quisido/eslint-config": "workspace:^",
"@quisido/vitest-config": "workspace:^",
Expand All @@ -60,10 +60,10 @@
"babel-plugin-replace-import-extension": "^1.1.4",
"cjs-ts": "workspace:^",
"concurrently": "^8.2.2",
"eslint": "^9.1.1",
"eslint": "^9.5.0",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite": "^5.3.1",
"vitest": "^1.6.0",
"wrangler": "^3.51.2"
"wrangler": "^3.60.3"
}
}
37 changes: 19 additions & 18 deletions packages/aws-rum-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,40 +34,41 @@
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@aws-sdk/types": "^3.535.0",
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@aws-sdk/types": "^3.598.0",
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@microsoft/eslint-formatter-sarif": "^3.1.0",
"@quisido/eslint-config": "workspace:^",
"@quisido/vitest-config": "workspace:^",
"@testing-library/react": "^15.0.7",
"@testing-library/dom": "^10.1.0",
"@testing-library/react": "^16.0.0",
"@types/babel__core": "^7.20.5",
"@types/babel__preset-env": "^7.9.6",
"@types/node": "^20.12.7",
"@types/react": "^18.2.79",
"@types/node": "^20.14.2",
"@types/react": "^18.3.3",
"@types/whatwg-fetch": "^0.0.33",
"@typescript-eslint/eslint-plugin": "patch:@typescript-eslint/eslint-plugin@npm%3A7.7.0#~/.yarn/patches/@typescript-eslint-eslint-plugin-npm-7.7.0-de43f1e757.patch",
"@typescript-eslint/parser": "^7.7.0",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"@vitest/coverage-istanbul": "^1.6.0",
"aws-rum-web": "^1.17.2",
"aws-rum-web": "^1.18.0",
"babel-plugin-replace-import-extension": "^1.1.4",
"cjs-ts": "workspace:^",
"concurrently": "^8.2.2",
"eslint": "^9.1.1",
"eslint": "^9.5.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"jsdom": "^24.0.0",
"prettier": "^3.2.5",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react-hooks": "^4.6.2",
"jsdom": "^24.1.0",
"prettier": "^3.3.2",
"react": "^18.3.1",
"react-dom": "^18.2.0",
"react-dom": "^18.3.1",
"typescript": "^5.4.5",
"unknown2string": "workspace:^",
"vite": "^5.2.11",
"vite": "^5.3.1",
"vitest": "^1.6.0",
"whatwg-fetch": "^3.6.20"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/cjs-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@
"prepublish": "concurrently --kill-others-on-fail --names attw,eslint \"yarn run attw\" \"yarn run eslint\""
},
"dependencies": {
"@babel/register": "^7.23.7"
"@babel/register": "^7.24.6"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@microsoft/eslint-formatter-sarif": "^3.1.0",
"@types/babel__core": "^7.20.5",
"@types/babel__preset-env": "^7.9.6",
"@types/babel__register": "^7.17.3",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "patch:@typescript-eslint/eslint-plugin@npm%3A7.7.0#~/.yarn/patches/@typescript-eslint-eslint-plugin-npm-7.7.0-de43f1e757.patch",
"@typescript-eslint/parser": "^7.7.0",
"@types/node": "^20.14.2",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"concurrently": "^8.2.2",
"eslint": "^9.1.1",
"eslint": "^9.5.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.5",
"prettier": "^3.3.2",
"typescript": "^5.4.5"
},
"peerDependencies": {
Expand Down
14 changes: 7 additions & 7 deletions packages/cloudflare-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@
"vitest:watch": "vitest watch"
},
"dependencies": {
"@cloudflare/workers-types": "^4.20240512.0"
"@cloudflare/workers-types": "^4.20240614.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@microsoft/eslint-formatter-sarif": "^3.1.0",
"@quisido/eslint-config": "workspace:^",
"@quisido/vitest-config": "workspace:^",
"@typescript-eslint/eslint-plugin": "patch:@typescript-eslint/eslint-plugin@npm%3A7.7.0#~/.yarn/patches/@typescript-eslint-eslint-plugin-npm-7.7.0-de43f1e757.patch",
"@typescript-eslint/parser": "^7.7.0",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"@vitest/coverage-istanbul": "^1.6.0",
"concurrently": "^8.2.2",
"eslint": "^9.1.1",
"eslint": "^9.5.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.5",
"tslib": "^2.6.2",
"prettier": "^3.3.2",
"tslib": "^2.6.3",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite": "^5.3.1",
"vitest": "^1.6.0"
}
}
16 changes: 8 additions & 8 deletions packages/csp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"cloudflare-utils": "workspace:^"
},
"devDependencies": {
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@cloudflare/workers-types": "^4.20240512.0",
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@cloudflare/workers-types": "^4.20240614.0",
"@microsoft/eslint-formatter-sarif": "^3.1.0",
"@quisido/eslint-config": "workspace:^",
"@quisido/vitest-config": "workspace:^",
Expand All @@ -50,10 +50,10 @@
"babel-plugin-replace-import-extension": "^1.1.4",
"cjs-ts": "workspace:^",
"concurrently": "^8.2.2",
"eslint": "^9.1.1",
"eslint": "^9.5.0",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite": "^5.3.1",
"vitest": "^1.6.0",
"wrangler": "^3.51.2"
"wrangler": "^3.60.3"
}
}
9 changes: 9 additions & 0 deletions packages/csp/sql/keys.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS [keys] (
"projectId" INTEGER NOT NULL,
"key" TEXT NOT NULL
);

CREATE INDEX IF NOT EXISTS idx_keys_projectId_key ON keys(`projectId`, `key`);

INSERT INTO `keys` (`projectId`, `key`)
VALUES (1, "demo");
4 changes: 2 additions & 2 deletions packages/csp/sql/projects.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CREATE TABLE IF NOT EXISTS [projects] (
"userId" INTEGER NOT NULL
);

CREATE INDEX IF NOT EXISTS idx_projects_userId ON projects(userId);
CREATE INDEX IF NOT EXISTS idx_projects_userId ON projects(`userId`);

INSERT INTO `projects` (`name`, `origins`, `userId`)
VALUES ("quisi.do", "https://localhost:3000 https://quisi.do", 1)
VALUES ("quisi.do", "http://localhost:3000 https://localhost:3000 https://quisi.do", 1);
6 changes: 3 additions & 3 deletions packages/csp/sql/reports.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ CREATE TABLE IF NOT EXISTS [reports] (
"columnNumber" INTEGER DEFAULT NULL
);

CREATE INDEX IF NOT EXISTS idx_reports_project_blockedURL ON reports(project, blockedURL);
CREATE INDEX IF NOT EXISTS idx_reports_project_documentURL ON reports(project, documentURL);
CREATE INDEX IF NOT EXISTS idx_reports_project ON reports(project);
CREATE INDEX IF NOT EXISTS idx_reports_project_blockedURL ON reports(`project`, `blockedURL`);
CREATE INDEX IF NOT EXISTS idx_reports_project_documentURL ON reports(`project`, `documentURL`);
CREATE INDEX IF NOT EXISTS idx_reports_project ON reports(`project`);
Loading

0 comments on commit 73213ec

Please sign in to comment.