Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies #776

Merged
merged 3 commits into from
Apr 16, 2023
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
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Package Build failure / inaccurate sizes
about: Unexpected failures that are not explained by the FAQ's page - https://github.com/pastelsky/bundlephobia#faq
title: "<error-name>: <package-name> fails to <condition>"
title: '<error-name>: <package-name> fails to <condition>'
labels: ''
assignees: pastelsky

---

## Package name
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/2-similar-package-suggestion.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest a better alternative to a popular package
title: 'Package suggestion: <alternative> for <package / category>'
labels: similar suggestion
assignees: ''

---

**Package name**
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/3-feature-request---improvement.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: ''
labels: Improvement
assignees: ''

---

**Please describe the feature/suggestion**
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/4-bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
cache: 'yarn'
- name: Install project dependencies
run: yarn install
- name: Run lint
run: yarn lint
- run: yarn build
Expand Down
785 changes: 0 additions & 785 deletions .yarn/releases/yarn-3.2.0.cjs

This file was deleted.

873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.5.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 @@ -4,4 +4,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'

yarnPath: .yarn/releases/yarn-3.2.0.cjs
yarnPath: .yarn/releases/yarn-3.5.0.cjs
4 changes: 2 additions & 2 deletions build-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@amplitude/node": "^1.10.0",
"@amplitude/node": "^1.10.2",
"dotenv-defaults": "^2.0.2",
"fastify": "^3.18.0",
"fastify": "^4.15.0",
"now-logs": "^0.0.7",
"package-build-stats": "7.3.13"
},
Expand Down
4 changes: 2 additions & 2 deletions cache-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"debug": "^4.2.0",
"debug": "^4.3.4",
"dotenv": "^8.2.0",
"dotenv-defaults": "^2.0.2",
"fastify": "^3.18.0",
"fastify": "^4.15.0",
"firebase": "^8.6.8",
"lru-cache": "^5.1.1"
},
Expand Down
8 changes: 4 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { parse } from 'url'
import Koa, { Context } from 'koa'
import proxy from 'koa-proxy'
import serve from 'koa-static'
import Router from 'koa-router'
import Router from '@koa/router'
import compress from 'koa-compress'
import cacheControl from 'koa-cache-control'
import requestId from 'koa-requestid'
Expand Down Expand Up @@ -161,7 +161,7 @@ app.prepare().then(() => {
exportsSizesMiddlware
)

router.get('/api/recent', async (ctx: Context) => {
router.get('/api/recent', async ctx => {
try {
ctx.cacheControl = {
maxAge: config.CACHE.RECENTS_API,
Expand All @@ -175,7 +175,7 @@ app.prepare().then(() => {
}
})

router.get('/api/package-history', async (ctx: Context) => {
router.get('/api/package-history', async ctx => {
const { name } = parsePackageString(ctx.query.package)
try {
ctx.cacheControl = {
Expand Down Expand Up @@ -255,7 +255,7 @@ app.prepare().then(() => {
ctx.status = 301
})

router.get('*', async ctx => {
router.get('(.*)', async ctx => {
invariant(ctx.req.url, 'url is missing')
const parsedUrl = parse(ctx.req.url, true)
await handle(ctx.req, ctx.res, parsedUrl)
Expand Down
94 changes: 47 additions & 47 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,43 @@
"dependencies": {
"@contentful/rich-text-react-renderer": "^15.12.1",
"@contentful/rich-text-types": "^15.12.1",
"@next/font": "^13.1.0",
"@koa/router": "^12.0.0",
"@next/font": "^13.3.0",
"@types/koa__router": "^12.0.0",
"animejs": "^3.2.1",
"array-to-sentence": "^2.0.0",
"axios": "^0.21.1",
"axios": "^0.21.4",
"balloon-css": "^0.4.0",
"bfj": "^7.0.2",
"big-json": "^3.1.0",
"canvas": "^2.9.3",
"classnames": "^2.2.6",
"date-fns": "^2.22.1",
"debounce": "^1.2.0",
"big-json": "^3.2.0",
"canvas": "^2.11.2",
"classnames": "^2.3.2",
"date-fns": "^2.29.3",
"debounce": "^1.2.1",
"debug": "^4.3.4",
"dompurify": "^2.2.9",
"dompurify": "^2.4.5",
"dotenv": "^8.2.0",
"dotenv-defaults": "^2.0.2",
"execa": "^5.1.1",
"fabric": "5.2.1",
"fabric": "5.3.0",
"firebase": "^8.6.8",
"flatten": "^1.0.3",
"git-url-parse": "^11.3.0",
"git-url-parse": "^13.1.0",
"github": "^10.0.0",
"got": "^9.6.0",
"hot-shots": "^6.8.5",
"ipchecker": "^0.0.2",
"is-empty-object": "^1.1.1",
"jsdom": "^16.4.0",
"koa": "^2.13.0",
"koa": "^2.14.2",
"koa-basic-auth": "^4.0.0",
"koa-better-ratelimit": "^2.1.2",
"koa-bodyparser": "^4.3.0",
"koa-bodyparser": "^4.4.0",
"koa-cache-control": "^2.0.0",
"koa-cash": "3.0.1-0",
"koa-compress": "^3.0.0",
"koa-cash": "3.0.4",
"koa-compress": "^3.1.0",
"koa-proxy": "^0.9.0",
"koa-requestid": "^2.1.0",
"koa-router": "^7.4.0",
"koa-send": "^5.0.1",
"koa-static": "^5.0.0",
"lodash": "^4.17.21",
Expand All @@ -61,36 +62,36 @@
"lru-cache": "^6.0.0",
"memory-fs": "^0.5.0",
"mkdir-promise": "^1.0.0",
"natural": "^5.0.3",
"next": "^13.0.0",
"node-fetch": "^2.6.1",
"normalize.css": "^7.0.0",
"p-queue": "^3.0.0",
"natural": "^5.2.4",
"next": "^13.3.0",
"node-fetch": "^2.6.9",
"normalize.css": "^8.0.1",
"p-queue": "^3.2.0",
"package-build-stats": "7.3.13",
"pacote": "^11.3.4",
"pacote": "^11.3.5",
"performance-now": "^2.1.0",
"promise-queue-plus": "^1.2.2",
"promise.series": "^0.2.0",
"query-string": "^7.0.0",
"query-string": "^7.1.3",
"react": "18.2.0",
"react-autocomplete": "^1.8.1",
"react-contentful": "^2.0.31",
"react-dom": "18.2.0",
"react-dropzone": "^7.0.1",
"react-flip-move": "^3.0.4",
"react-flip-move": "^3.0.5",
"react-sidebar": "^3.0.2",
"remark": "^9.0.0",
"sass": "^1.52.3",
"semver": "^7.1.3",
"strip-markdown": "^4.0.0",
"trending-github": "^1.0.2",
"sass": "^1.62.0",
"semver": "^7.4.0",
"strip-markdown": "^4.2.0",
"trending-github": "^1.2.0",
"truncate": "^3.0.0",
"ts-invariant": "^0.10.3",
"uglifyjs-webpack-plugin": "^2.2.0",
"unfetch": "^4.2.0",
"webpack": "^4.46.0",
"winston": "^3.3.3",
"workerpool": "^6.2.0"
"winston": "^3.8.2",
"workerpool": "^6.4.0"
},
"scripts": {
"dev": "DEBUG='bp:*' NODE_ENV=development nodemon --watch ./server --watch ./utils ./index.ts",
Expand Down Expand Up @@ -120,41 +121,40 @@
},
"devDependencies": {
"@svgr/webpack": "^6.5.1",
"@swc/core": "^1.3.14",
"@swc/core": "^1.3.51",
"@swc/helpers": "^0.4.12",
"@types/animejs": "^3.1.6",
"@types/animejs": "^3.1.7",
"@types/debounce": "^1.2.1",
"@types/koa": "^2.13.5",
"@types/koa": "^2.13.6",
"@types/koa-basic-auth": "^2.0.4",
"@types/koa-bodyparser": "^4.3.9",
"@types/koa-bodyparser": "^4.3.10",
"@types/koa-cache-control": "^2.0.3",
"@types/koa-cash": "^4.0.1",
"@types/koa-cash": "^4.1.0",
"@types/koa-compress": "^4.0.3",
"@types/koa-proxy": "^1.0.4",
"@types/koa-router": "^7.4.4",
"@types/koa-static": "^4.0.2",
"@types/node": "^18.11.9",
"@types/react": "^18.0.24",
"@types/node": "^18.15.11",
"@types/react": "^18.0.35",
"@types/react-autocomplete": "^1.8.6",
"@types/react-dom": "^18.0.8",
"@types/react-dom": "^18.0.11",
"@types/react-sidebar": "^3.0.2",
"autoprefixer": "^9.8.6",
"eslint": "^8.26.0",
"eslint-config-next": "^13.0.1",
"eslint-config-prettier": "^8.5.0",
"autoprefixer": "^9.8.8",
"eslint": "^8.38.0",
"eslint-config-next": "^13.3.0",
"eslint-config-prettier": "^8.8.0",
"glob": "^7.1.6",
"husky": "^4.3.0",
"jest": "^24.9.0",
"nodemon": "^2.0.20",
"postcss": "^8.3.5",
"nodemon": "^2.0.22",
"postcss": "^8.4.21",
"postcss-easy-import": "^3.0.0",
"postcss-loader": "^3.0.0",
"prettier": "2.3.1",
"pretty-quick": "^3.1.1",
"pretty-quick": "^3.1.3",
"sass-loader": "^10.2.0",
"sitemap": "^7.0.0",
"sitemap": "^7.1.1",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
},
"packageManager": "yarn@3.2.0"
"packageManager": "yarn@3.5.0"
}
2 changes: 1 addition & 1 deletion pages/_document.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class MyDocument extends Document {
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossOrigin="true"
crossOrigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css?family=Source+Code+Pro:300,400,600"
Expand Down
10 changes: 2 additions & 8 deletions server/middlewares/results/build.middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@ const buildService = new BuildService()
async function buildMiddleware(ctx, next) {
let result,
priority = getRequestPriority(ctx)
const {
scoped,
name,
version,
description,
repository,
packageString,
} = ctx.state.resolved
const { scoped, name, version, description, repository, packageString } =
ctx.state.resolved
const { force, record, package: packageQuery } = ctx.query

const buildStart = now()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ const prefixURL = (url, { base, user, project, head, path }) => {

async function getPackageDetails(packageName) {
let readme = ''
const {
body,
} = await got(
const { body } = await got(
`https://ofcncog2cu-dsn.algolia.net/1/indexes/npm-search/${encodeURIComponent(
packageName
)}?x-algolia-application-id=OFCNCOG2CU&x-algolia-api-key=f54e21fa3a2a0160595bb058179bfb1e`,
Expand Down
Loading