Skip to content

Commit

Permalink
chore: upgrade all dependencies (#427)
Browse files Browse the repository at this point in the history
* chore: upgrade all dependencies

* ci: bumps node engine version for workflows
  • Loading branch information
mikaelbr authored Nov 14, 2023
1 parent a54bd4d commit ef39489
Show file tree
Hide file tree
Showing 23 changed files with 1,977 additions and 1,383 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: 20
- run: yarn install
- run: yarn lint
2 changes: 1 addition & 1 deletion .github/workflows/tsc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: install node v12
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 20
- name: yarn install
run: yarn install
- name: tsc
Expand Down
17 changes: 10 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ module.exports = withBundleAnalyzer(
withImages({
images: {
disableStaticImages: true,
domains: [
'variantno.blob.core.windows.net',
'chewiesald2ijhpvmb34c.blob.core.windows.net',
'podcast.variant.no', // Need this to get the images for the RSS feed
'images.transistor.fm', // this
'img.youtube.com', // this
'cdn-images-1.medium.com', // aaaaand this
remotePatterns: [
{ protocol: 'https', hostname: 'variantno.blob.core.windows.net' },
{
protocol: 'https',
hostname: 'chewiesald2ijhpvmb34c.blob.core.windows.net',
},
{ protocol: 'https', hostname: 'podcast.variant.no' }, // Need this to get the images for the RSS feed
{ protocol: 'https', hostname: 'images.transistor.fm' }, // this
{ protocol: 'https', hostname: 'img.youtube.com' }, // this
{ protocol: 'https', hostname: 'cdn-images-1.medium.com' }, // aaaaand this
],
formats: ['image/avif', 'image/webp'],
},
Expand Down
64 changes: 32 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,48 @@
"license": "MIT",
"description": "Homepage for Variant.no",
"devDependencies": {
"@types/animejs": "^3.1.5",
"@types/d3-array": "^3.0.3",
"@types/jsdom": "^20.0.0",
"@types/markdown-it": "^12.2.3",
"@types/node": "^18.8.5",
"@types/react": "^18.0.21",
"@types/react-slider": "^1.3.1",
"@typescript-eslint/parser": "^5.40.0",
"autoprefixer": "^10.4.12",
"eslint": "^8.25.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"@types/animejs": "^3.1.11",
"@types/d3-array": "^3.2.1",
"@types/jsdom": "^21.1.5",
"@types/markdown-it": "^13.0.6",
"@types/node": "^20.9.0",
"@types/react": "^18.2.37",
"@types/react-slider": "^1.3.4",
"@typescript-eslint/parser": "^6.11.0",
"autoprefixer": "^10.4.16",
"eslint": "^8.53.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": ">=8.0.1",
"lint-staged": ">=13.0.3",
"husky": ">=8.0.3",
"lint-staged": ">=15.1.0",
"next-compose-plugins": "^2.2.1",
"prettier": "^2.7.1",
"typescript": "^4.8.4",
"vitest": "^0.24.3"
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"vitest": "^0.34.6"
},
"dependencies": {
"@next/bundle-analyzer": "^12.3.1",
"@next/bundle-analyzer": "^14.0.2",
"@variant/components": "^2.0.11",
"@variant/profile": "^3.0.1",
"@visx/curve": "^2.1.0",
"@visx/gradient": "^2.10.0",
"@visx/responsive": "^2.10.0",
"@visx/scale": "^2.2.2",
"@visx/shape": "^2.12.2",
"@visx/curve": "^3.3.0",
"@visx/gradient": "^3.3.0",
"@visx/responsive": "^3.3.0",
"@visx/scale": "^3.5.0",
"@visx/shape": "^3.5.0",
"animejs": "^3.2.1",
"d3-array": "^3.2.0",
"date-fns": "^2.29.3",
"framer-motion": "^7.5.3",
"d3-array": "^3.2.4",
"date-fns": "^2.30.0",
"framer-motion": "^10.16.4",
"gray-matter": "^4.0.3",
"markdown-it": "^13.0.1",
"next": "^12.3.1",
"next-images": "^1.8.4",
"node-html-parser": "^6.1.1",
"markdown-it": "^13.0.2",
"next": "^14.0.2",
"next-images": "^1.8.5",
"node-html-parser": "^6.1.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intersection-observer": "^9.4.0",
"react-slider": "^2.0.4",
"rss-parser": "^3.12.0"
"react-intersection-observer": "^9.5.3",
"react-slider": "^2.0.6",
"rss-parser": "^3.13.0"
},
"scripts": {
"dev": "next dev",
Expand Down
8 changes: 3 additions & 5 deletions src/bergen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ export function BergenInfoBlock() {
/>

<h2 className={style.infoBlock__title}>
<Link href="/bergen">
<a className={style.infoBlock__link}>
<span className={style.infoBlock__text}>Ny variant i Bergen</span>
<Arrow className={style.infoBlock__arrow} color="standard__white" />
</a>
<Link href="/bergen" className={style.infoBlock__link}>
<span className={style.infoBlock__text}>Ny variant i Bergen</span>
<Arrow className={style.infoBlock__arrow} color="standard__white" />
</Link>
</h2>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/community/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ function Community() {
være behov for det. Dette kan for eksempel dekke mat eller andre
utgifter en community vil møte på. Vi i Variant går også aktivt
inn som samarbeidspartnere for å støtte opp om{' '}
<Link href={'/mangfold'}>
<a title="Variant - Mangfold">mangfold</a>
<Link href={'/mangfold'} title="Variant - Mangfold">
mangfold
</Link>{' '}
i tech-bransjen.
</p>
Expand Down
22 changes: 10 additions & 12 deletions src/components/blob-link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@ export default function BlobLink({
background = colors.colorPairs.secondary1.default.bg,
}: BlobLinkProps) {
return (
<Link href={href}>
<a className={and(style.blobLink, className)}>
<BaseBlob
width={size}
height={size}
randomness={2}
extraPoints={6}
color={background}
/>
<span>{text}</span>
<Arrow className={style.blobLinkArrow} />
</a>
<Link href={href} className={and(style.blobLink, className)}>
<BaseBlob
width={size}
height={size}
randomness={2}
extraPoints={6}
color={background}
/>
<span>{text}</span>
<Arrow className={style.blobLinkArrow} />
</Link>
);
}
15 changes: 7 additions & 8 deletions src/components/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,13 @@ export function ButtonNextLink({
...props
}: ButtonProps & LinkType & Pick<AType, 'aria-label'>) {
return (
<Link {...props}>
<a
style={colorPairToCssCustomProps(colorPair, colorVariation)}
className={and(style.buttonLink, className)}
aria-label={props['aria-label']}
>
{children}
</a>
<Link
{...props}
style={colorPairToCssCustomProps(colorPair, colorVariation)}
className={and(style.buttonLink, className)}
aria-label={props['aria-label']}
>
{children}
</Link>
);
}
Expand Down
31 changes: 12 additions & 19 deletions src/components/page-header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,15 @@ export default function PageHeader({
return (
<header className={style.header}>
<LogoWrapper className={style.header__logo}>
<Link href="/">
<a
aria-label="Variant startside"
aria-current={homepage ? 'page' : undefined}
>
<img
src={require(whiteMode ? './whiteVariant.svg' : './variant.svg')}
alt="Variant"
/>
</a>
<Link
href="/"
aria-label="Variant startside"
aria-current={homepage ? 'page' : undefined}
>
<img
src={require(whiteMode ? './whiteVariant.svg' : './variant.svg')}
alt="Variant"
/>
</Link>
</LogoWrapper>

Expand Down Expand Up @@ -109,9 +108,7 @@ export default function PageHeader({
ref={navRef}
>
<li>
<Link href="/tjenesteomrader">
<a>Tjenester</a>
</Link>
<Link href="/tjenesteomrader">Tjenester</Link>
</li>
<li>
<a href="http://handbook.variant.no" rel="noopener">
Expand All @@ -124,14 +121,10 @@ export default function PageHeader({
</a>
</li>
<li>
<Link href="/ansatte">
<a>Alle varianter</a>
</Link>
<Link href="/ansatte">Alle varianter</Link>
</li>
<li>
<Link href="/kalkulator">
<a>Lønnskalkulator</a>
</Link>
<Link href="/kalkulator">Lønnskalkulator</Link>
</li>
</ul>
</nav>
Expand Down
29 changes: 12 additions & 17 deletions src/employees/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BaseBlob } from '@variant/components/lib/blob';
import { colors } from '@variant/profile/lib';
import { InferGetStaticPropsType } from 'next';
import Head from 'next/head';
import Image from 'next/future/image';
import Image from 'next/image';
import Link from 'next/link';
import { getStaticProps } from 'pages/ansatte';
import React, {
Expand Down Expand Up @@ -153,10 +153,7 @@ export const EmployeeTile = ({
<h2 className={and(style.employee__name, 'fancy')}>{name}</h2>
<div className={style.employee__office}>{officeName}</div>
{telephone ? (
<a
href={`tel:${telephone}`}
className={style.employee__phone}
>
<a href={`tel:${telephone}`} className={style.employee__phone}>
📞 {formatTelephone(telephone)}
</a>
) : (
Expand All @@ -174,18 +171,16 @@ function JobsLink({ text }: { text: string }) {
className={style.employee__jobsLinkContainer}
style={{ '--randomOffset': getRandomOffset() } as CSSProperties}
>
<Link href="/jobs">
<a className={style.employee__jobsLink}>
<BaseBlob
width={300}
height={300}
randomness={2}
extraPoints={6}
color={colors.colorPairs.secondary1.default.bg}
/>
<p>{text}</p>
<Arrow className={style.employee__jobsLinkArrow} />
</a>
<Link href="/jobs" className={style.employee__jobsLink}>
<BaseBlob
width={300}
height={300}
randomness={2}
extraPoints={6}
color={colors.colorPairs.secondary1.default.bg}
/>
<p>{text}</p>
<Arrow className={style.employee__jobsLinkArrow} />
</Link>
</div>
);
Expand Down
22 changes: 9 additions & 13 deletions src/helsinki23/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ const Helsinki23: NextPage = () => {
<Image src={arrowDown} height={24} width={24} alt="pil ned" />
</a>
<Link href="/helsinki23/praktisk">
<a>
<span>Ta meg til siden med alt jeg lurer på</span>
<Image src={arrowRight} height={24} width={24} alt="pil høyre" />
</a>
<span>Ta meg til siden med alt jeg lurer på</span>
<Image src={arrowRight} height={24} width={24} alt="pil høyre" />
</Link>
</div>
<section id="Description">
Expand Down Expand Up @@ -91,15 +89,13 @@ const Helsinki23: NextPage = () => {
<li>
<time>12:00</time>{' '}
<Link href={'/helsinki23/tips'}>
<a>
Valgfrie aktiviteter
<Image
src={arrowRightCurved}
width={45}
height={46}
alt="pil høyre"
/>
</a>
Valgfrie aktiviteter
<Image
src={arrowRightCurved}
width={45}
height={46}
alt="pil høyre"
/>
</Link>
</li>
<li>
Expand Down
Loading

1 comment on commit ef39489

@vercel
Copy link

@vercel vercel bot commented on ef39489 Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

variant-no – ./

variant-no-git-main-variant1.vercel.app
variant-no-variant1.vercel.app
www.variant.no

Please sign in to comment.