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

chore: bumped most packages to latest (July 2024) #100

Merged
merged 8 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
],
overrides: [
{
extends: ["plugin:markdown/recommended"],
extends: ["plugin:markdown/recommended-legacy"],
files: ["**/*.md"],
processor: "markdown/markdown",
},
Expand Down
10 changes: 5 additions & 5 deletions _out/about.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down Expand Up @@ -117,12 +117,12 @@ <h3 class="large">The Website</h3>
{
key,
},
""
"",
);
}
try {
let positions = JSON.parse(
sessionStorage.getItem(STORAGE_KEY) || "{}"
sessionStorage.getItem(STORAGE_KEY) || "{}",
);
let storedY = positions[restoreKey || window.history.state.key];
if (typeof storedY === "number") {
Expand Down Expand Up @@ -272,14 +272,14 @@ <h3 class="large">The Website</h3>
ws.onclose = (event) => {
if (event.code === 1006) {
console.log(
"Remix dev asset server web socket closed. Reconnecting..."
"Remix dev asset server web socket closed. Reconnecting...",
);
setTimeout(
() =>
remixLiveReloadConnect({
onOpen: () => window.location.reload(),
}),
1000
1000,
);
}
};
Expand Down
10 changes: 5 additions & 5 deletions _out/ad.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down Expand Up @@ -34,12 +34,12 @@
{
key,
},
""
"",
);
}
try {
let positions = JSON.parse(
sessionStorage.getItem(STORAGE_KEY) || "{}"
sessionStorage.getItem(STORAGE_KEY) || "{}",
);
let storedY = positions[restoreKey || window.history.state.key];
if (typeof storedY === "number") {
Expand Down Expand Up @@ -167,14 +167,14 @@
ws.onclose = (event) => {
if (event.code === 1006) {
console.log(
"Remix dev asset server web socket closed. Reconnecting..."
"Remix dev asset server web socket closed. Reconnecting...",
);
setTimeout(
() =>
remixLiveReloadConnect({
onOpen: () => window.location.reload(),
}),
1000
1000,
);
}
};
Expand Down
10 changes: 5 additions & 5 deletions _out/code-of-conduct.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down Expand Up @@ -117,12 +117,12 @@ <h2 class="larger">
{
key,
},
""
"",
);
}
try {
let positions = JSON.parse(
sessionStorage.getItem(STORAGE_KEY) || "{}"
sessionStorage.getItem(STORAGE_KEY) || "{}",
);
let storedY = positions[restoreKey || window.history.state.key];
if (typeof storedY === "number") {
Expand Down Expand Up @@ -256,14 +256,14 @@ <h2 class="larger">
ws.onclose = (event) => {
if (event.code === 1006) {
console.log(
"Remix dev asset server web socket closed. Reconnecting..."
"Remix dev asset server web socket closed. Reconnecting...",
);
setTimeout(
() =>
remixLiveReloadConnect({
onOpen: () => window.location.reload(),
}),
1000
1000,
);
}
};
Expand Down
10 changes: 5 additions & 5 deletions _out/events.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down Expand Up @@ -470,12 +470,12 @@ <h3 class="event-details-date">June 9</h3>
{
key,
},
""
"",
);
}
try {
let positions = JSON.parse(
sessionStorage.getItem(STORAGE_KEY) || "{}"
sessionStorage.getItem(STORAGE_KEY) || "{}",
);
let storedY = positions[restoreKey || window.history.state.key];
if (typeof storedY === "number") {
Expand Down Expand Up @@ -729,14 +729,14 @@ <h3 class="event-details-date">June 9</h3>
ws.onclose = (event) => {
if (event.code === 1006) {
console.log(
"Remix dev asset server web socket closed. Reconnecting..."
"Remix dev asset server web socket closed. Reconnecting...",
);
setTimeout(
() =>
remixLiveReloadConnect({
onOpen: () => window.location.reload(),
}),
1000
1000,
);
}
};
Expand Down
10 changes: 5 additions & 5 deletions _out/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down Expand Up @@ -103,12 +103,12 @@ <h3 class="event-details-date">July 13</h3>
{
key,
},
""
"",
);
}
try {
let positions = JSON.parse(
sessionStorage.getItem(STORAGE_KEY) || "{}"
sessionStorage.getItem(STORAGE_KEY) || "{}",
);
let storedY = positions[restoreKey || window.history.state.key];
if (typeof storedY === "number") {
Expand Down Expand Up @@ -261,14 +261,14 @@ <h3 class="event-details-date">July 13</h3>
ws.onclose = (event) => {
if (event.code === 1006) {
console.log(
"Remix dev asset server web socket closed. Reconnecting..."
"Remix dev asset server web socket closed. Reconnecting...",
);
setTimeout(
() =>
remixLiveReloadConnect({
onOpen: () => window.location.reload(),
}),
1000
1000,
);
}
};
Expand Down
10 changes: 5 additions & 5 deletions _out/join-us.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down Expand Up @@ -222,12 +222,12 @@ <h1 class="page-grid-title">Join Us</h1>
{
key,
},
""
"",
);
}
try {
let positions = JSON.parse(
sessionStorage.getItem(STORAGE_KEY) || "{}"
sessionStorage.getItem(STORAGE_KEY) || "{}",
);
let storedY = positions[restoreKey || window.history.state.key];
if (typeof storedY === "number") {
Expand Down Expand Up @@ -418,14 +418,14 @@ <h1 class="page-grid-title">Join Us</h1>
ws.onclose = (event) => {
if (event.code === 1006) {
console.log(
"Remix dev asset server web socket closed. Reconnecting..."
"Remix dev asset server web socket closed. Reconnecting...",
);
setTimeout(
() =>
remixLiveReloadConnect({
onOpen: () => window.location.reload(),
}),
1000
1000,
);
}
};
Expand Down
10 changes: 5 additions & 5 deletions _out/sponsors.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down Expand Up @@ -140,12 +140,12 @@ <h2 class="larger">Thanks, Sponsors!</h2>
{
key,
},
""
"",
);
}
try {
let positions = JSON.parse(
sessionStorage.getItem(STORAGE_KEY) || "{}"
sessionStorage.getItem(STORAGE_KEY) || "{}",
);
let storedY = positions[restoreKey || window.history.state.key];
if (typeof storedY === "number") {
Expand Down Expand Up @@ -314,14 +314,14 @@ <h2 class="larger">Thanks, Sponsors!</h2>
ws.onclose = (event) => {
if (event.code === 1006) {
console.log(
"Remix dev asset server web socket closed. Reconnecting..."
"Remix dev asset server web socket closed. Reconnecting...",
);
setTimeout(
() =>
remixLiveReloadConnect({
onOpen: () => window.location.reload(),
}),
1000
1000,
);
}
};
Expand Down
2 changes: 1 addition & 1 deletion app/components/Icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function Icons({ icons, imageClassName }: IconsProps) {
</div>
</div>
</li>
)
),
)}
</ol>
);
Expand Down
4 changes: 2 additions & 2 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ export const loader = async () => {
// Surely this assumption tied to datetime logic will never come back to haunt us.
const now = new Date();
const sixWeeksInTheFuture = new Date(
now.getTime() + 6 * 7 * 24 * 60 * 60 * 1000
now.getTime() + 6 * 7 * 24 * 60 * 60 * 1000,
);

return json(
// Filter and sort event date in ascending order.
events
.filter(({ date }) => date > now && date < sixWeeksInTheFuture)
.sort((a, b) => a.date.getTime() - b.date.getTime())
.sort((a, b) => a.date.getTime() - b.date.getTime()),
);
};

Expand Down
4 changes: 2 additions & 2 deletions app/routes/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { constructSiteTitle, groupBy } from "~/utils/common";
export const loader: LoaderFunction = async () => {
return json(
groupBy(await import("../data/events.json"), (event) =>
new Date(event.date).getFullYear()
)
new Date(event.date).getFullYear(),
),
);
};

Expand Down
2 changes: 1 addition & 1 deletion app/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function constructSiteTitle(pageTitle?: string): string {

export function groupBy<T, K extends number | string>(
items: T[],
getKey: (item: T) => K
getKey: (item: T) => K,
) {
const grouped = {} as Record<K, T[] | undefined>;

Expand Down
4 changes: 2 additions & 2 deletions knip.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"@typescript-eslint/eslint-plugin-stylistic-type-checked",
"isbot",
"stylelint-config-standard",
"stylelint-order"
]
"stylelint-order",
],
}
Loading
Loading