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

⬇️ [Node] Downgrade to LTS #88

Merged
merged 4 commits into from
Aug 18, 2024
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
6 changes: 6 additions & 0 deletions .changeset/few-clouds-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"website": patch
"earwurm": patch
---

Downgrade to Node LTS.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.4
20.16
16 changes: 8 additions & 8 deletions app/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"earwurm"
],
"engines": {
"node": ">=22.4.0",
"pnpm": ">=9.6.0"
"node": ">=20.16.0",
"pnpm": ">=9.7.1"
},
"scripts": {
"clean": "rm -rf dist && rm -rf *.tsbuildinfo",
Expand All @@ -26,17 +26,17 @@
"type-check": "vue-tsc --noEmit -p tsconfig.json --composite false"
},
"dependencies": {
"beeftools": "^0.1.6",
"beeftools": "^0.1.7",
"earwurm": "workspace:*",
"vue": "^3.4.34"
"vue": "^3.4.38"
},
"devDependencies": {
"@antfu/eslint-config": "^2.24.0",
"@antfu/eslint-config": "^2.26.0",
"@earwurm/types": "workspace:*",
"@vitejs/plugin-vue": "^5.1.1",
"eslint": "^9.8.0",
"@vitejs/plugin-vue": "^5.1.2",
"eslint": "^9.9.0",
"eslint-plugin-format": "^0.1.2",
"lightningcss": "^1.25.1",
"lightningcss": "^1.26.0",
"vite-plugin-svg-sprite": "^0.5.2",
"vue-tsc": "^2.0.29"
}
Expand Down
13 changes: 3 additions & 10 deletions app/website/src/components/SpeedSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,15 @@ const stripes = computed(() => {
<style scoped>
.SpeedSlider {
/* Webkit does not like `height > 100%` for inputs. */
--speed-slider-track-height: calc(
var(--row-height) - var(--action-padding) * 2
);
--speed-slider-progress-height: calc(
var(--row-height) - var(--action-padding) * 2 - var(--app-border-width) * 4
);
--speed-slider-track-height: calc(var(--row-height) - var(--action-padding) * 2);
--speed-slider-progress-height: calc(var(--row-height) - var(--action-padding) * 2 - var(--app-border-width) * 4);

--speed-slider-track-stop-1: calc(50% - var(--app-border-width));
--speed-slider-track-stop-2: calc(50% + var(--app-border-width));

--slider-progress: 0;
--slider-percent: calc(var(--slider-progress) * 1%);
--slider-offset: calc(
var(--row-height) * (0.5 - var(--slider-progress) / 100)
);
--slider-offset: calc(var(--row-height) * (0.5 - var(--slider-progress) / 100));

display: grid;
flex: 1 1 auto;
Expand Down Expand Up @@ -133,7 +127,6 @@ const stripes = computed(() => {

@mixin input-track {
height: var(--speed-slider-track-height);
/* prettier-ignore */
background: linear-gradient(
transparent 0% var(--speed-slider-track-stop-1),
currentColor var(--speed-slider-track-stop-1) var(--speed-slider-track-stop-2),
Expand Down
8 changes: 2 additions & 6 deletions app/website/src/components/VolumeManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,11 @@ const progress = computed(() => {

<style scoped>
.VolumeManager {
--volume-manager-track-height: calc(
var(--row-height) - var(--action-padding) * 2
);
--volume-manager-track-height: calc(var(--row-height) - var(--action-padding) * 2);

--slider-progress: 0;
--slider-percent: calc(var(--slider-progress) * 1%);
--slider-offset: calc(
var(--row-height) * (0.5 - var(--slider-progress) / 100)
);
--slider-offset: calc(var(--row-height) * (0.5 - var(--slider-progress) / 100));

display: grid;
align-items: center;
Expand Down
9 changes: 2 additions & 7 deletions app/website/src/components/VolumeStack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,14 @@ const progress = computed(() => {

<style scoped>
.VolumeStack {
--volume-stack-track-height: calc(
var(--row-height) - var(--action-padding) * 2
);
--volume-stack-track-height: calc(var(--row-height) - var(--action-padding) * 2);

--volume-stack-track-stop-1: calc(50% - var(--app-border-width) / 2);
--volume-stack-track-stop-2: calc(50% + var(--app-border-width) / 2);

--slider-progress: 0;
--slider-percent: calc(var(--slider-progress) * 1%);
--slider-offset: calc(
var(--row-height) * (0.5 - var(--slider-progress) / 100)
);
--slider-offset: calc(var(--row-height) * (0.5 - var(--slider-progress) / 100));

position: relative;
z-index: 1;
Expand All @@ -84,7 +80,6 @@ const progress = computed(() => {

@mixin input-track {
height: var(--volume-stack-track-height);
/* prettier-ignore */
background: linear-gradient(
transparent 0% var(--volume-stack-track-stop-1),
var(--color-primary) var(--volume-stack-track-stop-1) var(--volume-stack-track-stop-2),
Expand Down
14 changes: 2 additions & 12 deletions app/website/src/primitives/MotionSlideReveal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ defineProps<MotionSlideRevealProps>();
.slideReveal-enter-active,
.slideReveal-leave-active {
--clip-path-x: 100%;
clip-path: polygon(
0 0,
var(--clip-path-x) 0,
var(--clip-path-x) 100%,
0 100%
);
clip-path: polygon(0 0, var(--clip-path-x) 0, var(--clip-path-x) 100%, 0 100%);
transition: clip-path var(--duration-slow) var(--easing-cubic);

/* Nested <LabelAction />
Expand Down Expand Up @@ -61,12 +56,7 @@ defineProps<MotionSlideRevealProps>();
.slideReverse-enter-active,
.slideReverse-leave-active {
--clip-path-x: 0%;
clip-path: polygon(
var(--clip-path-x) 0,
100% 0,
100% 100%,
var(--clip-path-x) 100%
);
clip-path: polygon(var(--clip-path-x) 0, 100% 0, 100% 100%, var(--clip-path-x) 100%);
transition: clip-path var(--duration-slow) var(--easing-cubic);

/* Nested <LabelAction />
Expand Down
3 changes: 1 addition & 2 deletions app/website/src/primitives/ProgressBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ const progress = computed(() => calcProgress(value, {min, max, round: true}));

.pattern-diagonal--animated {
/* Custom class for unique duration and easing. */
animation: anim-svg-diagonal calc(var(--progress-pattern-speed, 0) * 1ms)
infinite steps(4);
animation: anim-svg-diagonal calc(var(--progress-pattern-speed, 0) * 1ms) infinite steps(4);
}

.Progress {
Expand Down
4 changes: 1 addition & 3 deletions app/website/src/styles/design-system.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
--app-border-width: 0.2rem;

--app-max-width: 84rem;
--app-full-width-mobile: calc(
var(--breakpoint-mobile-begin) - var(--app-padding) * 2
);
--app-full-width-mobile: calc(var(--breakpoint-mobile-begin) - var(--app-padding) * 2);

/* Paired with inset border gives the appearance of 4px padding. */
--action-padding: 0.6rem;
Expand Down
6 changes: 2 additions & 4 deletions app/website/src/styles/keyframes.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
background-position: 0 0;
}
to {
background-position: var(--pattern-diagonal-size)
var(--pattern-diagonal-size);
background-position: var(--pattern-diagonal-size) var(--pattern-diagonal-size);
}
}

Expand All @@ -13,7 +12,6 @@
background-position: 0 0;
}
to {
background-position: var(--pattern-halftone-size)
var(--pattern-halftone-size);
background-position: var(--pattern-halftone-size) var(--pattern-halftone-size);
}
}
3 changes: 1 addition & 2 deletions app/website/src/styles/mixin.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,5 @@
@mixin pattern-halftone-dense {
background-image: var(--pattern-halftone-dense-url);
background-repeat: repeat;
background-size: var(--pattern-halftone-dense-size)
var(--pattern-halftone-dense-size);
background-size: var(--pattern-halftone-dense-size) var(--pattern-halftone-dense-size);
}
10 changes: 3 additions & 7 deletions app/website/src/styles/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* https://github.com/elad2412/the-new-css-reset
*/

*:where(
:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)
) {
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
all: unset;
display: revert;
}
Expand Down Expand Up @@ -85,8 +83,7 @@ meter {
/* --- Custom resets --- */

html {
font-family: Avenir, 'Avenir Next LT Pro', Montserrat, Corbel, 'URW Gothic',
source-sans-pro, sans-serif;
font-family: Avenir, 'Avenir Next LT Pro', Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
font-size: 10px;
font-display: swap;
line-height: 1;
Expand All @@ -105,8 +102,7 @@ body {
}

code {
font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas,
'DejaVu Sans Mono', monospace;
font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
}

svg:not(:root) {
Expand Down
5 changes: 1 addition & 4 deletions app/website/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ const entries = [column1, column2];
.Stacks {
display: grid;
gap: var(--app-spacing);
grid-template-columns: repeat(
auto-fit,
minmax(var(--app-full-width-mobile), 1fr)
);
grid-template-columns: repeat(auto-fit, minmax(var(--app-full-width-mobile), 1fr));

@media (min-width: 1440px) and (min-height: 1280px) {
gap: var(--row-height);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "earwurm-monorepo",
"version": "0.0.0",
"private": true,
"packageManager": "pnpm@9.6.0",
"packageManager": "pnpm@9.7.1",
"description": "Monorepo for the Earwurm TypeScript project",
"author": "Curtis Dulmage",
"license": "ISC",
Expand All @@ -16,8 +16,8 @@
},
"keywords": [],
"engines": {
"node": ">=22.4.0",
"pnpm": ">=9.6.0"
"node": ">=20.16.0",
"pnpm": ">=9.7.1"
},
"scripts": {
"clean": "pnpm -r clean && rm -rf coverage",
Expand Down
16 changes: 8 additions & 8 deletions pkg/earwurm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"dist"
],
"engines": {
"node": ">=22.4.0",
"pnpm": ">=9.6.0"
"node": ">=20.16.0",
"pnpm": ">=9.7.1"
},
"scripts": {
"clean": "rm -rf dist",
Expand All @@ -48,18 +48,18 @@
"start": "pnpm build:only --watch"
},
"peerDependencies": {
"beeftools": "^0.1.6",
"emitten": "^0.6.7"
"beeftools": "^0.1.7",
"emitten": "^0.6.8"
},
"dependencies": {
"beeftools": "^0.1.6",
"emitten": "^0.6.7"
"beeftools": "^0.1.7",
"emitten": "^0.6.8"
},
"devDependencies": {
"@earwurm/helpers": "workspace:*",
"@earwurm/mocks": "workspace:*",
"@earwurm/types": "workspace:*",
"vite": "^5.3.5",
"vite-plugin-dts": "^3.9.1"
"vite": "^5.4.1",
"vite-plugin-dts": "^4.0.3"
}
}
4 changes: 2 additions & 2 deletions pkg/helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"license": "ISC",
"engines": {
"node": ">=22.4.0",
"pnpm": ">=9.6.0"
"node": ">=20.16.0",
"pnpm": ">=9.7.1"
},
"dependencies": {},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions pkg/mocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"private": true,
"license": "ISC",
"engines": {
"node": ">=22.4.0",
"pnpm": ">=9.6.0"
"node": ">=20.16.0",
"pnpm": ">=9.7.1"
},
"dependencies": {
"beeftools": "^0.1.6"
"beeftools": "^0.1.7"
},
"devDependencies": {}
}
4 changes: 2 additions & 2 deletions pkg/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"license": "ISC",
"engines": {
"node": ">=22.4.0",
"pnpm": ">=9.6.0"
"node": ">=20.16.0",
"pnpm": ">=9.7.1"
},
"dependencies": {},
"devDependencies": {}
Expand Down
Loading