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: bump dependencies #340

Merged
merged 1 commit into from
Mar 10, 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
2 changes: 1 addition & 1 deletion nix/yarn-project.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ let
rm $out/.gitignore
'';
outputHashMode = "recursive";
outputHash = "sha512-1nPLkC50PWtZZsp9eVO1T5iipwLrM74RqubgYEGUOrWe1v7zxmRs/EZli/U63gG59k10NmnkECP/p+LYOjrdTw==";
outputHash = "sha512-OSnWtpTd6PtVvHw6ITOIL9nX9K5e/8w9R/OM+QvZYv/lh9VIM6iUNOMOkM0suARJDJ4MB83sGb4R8qBlD06uWA==";
};

# Main project derivation.
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"private": true,
"devDependencies": {
"@tsconfig/node18": "^18.2.2",
"@types/node": "^20.11.20",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@types/node": "^20.11.25",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"@vscode/vsce": "^2.24.0",
"@yarnpkg/types": "^4.0.0",
"eslint": "^8.57.0",
Expand All @@ -17,7 +17,7 @@
"prettier": "^3.2.5",
"tsup": "^8.0.2",
"tsx": "^4.7.1",
"typescript": "^5.3.3"
"typescript": "<5.4.0"
},
"dependenciesMeta": {
"keytar": {
Expand Down
12 changes: 6 additions & 6 deletions packages/catppuccin-vsc-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
"private": true,
"devDependencies": {
"@catppuccin/palette": "^1.1.0",
"@fontsource-variable/jetbrains-mono": "~5.0.19",
"@fontsource-variable/jetbrains-mono": "~5.0.20",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-styling": "^1.3.7",
"@storybook/addon-themes": "^7.6.17",
"@storybook/blocks": "^7.6.17",
"@storybook/react": "^7.6.17",
"@storybook/react-vite": "^7.6.17",
"@tsconfig/node18": "^18.2.2",
"@types/node": "^20.11.20",
"@types/react": "^18.2.58",
"@types/node": "^20.11.25",
"@types/react": "^18.2.64",
"catppuccin-vsc": "workspace:*",
"chromatic": "^11.0.0",
"chromatic": "^11.0.7",
"eslint": "^8.57.0",
"eslint-plugin-storybook": "^0.8.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"shikiji": "^0.10.2",
"shiki": "^1.1.7",
"storybook": "^7.6.17",
"tsx": "^4.7.1",
"typescript": "^5.3.3",
"typescript": "<5.4.0",
"vite": "^4.5.2"
},
"scripts": {
Expand Down
26 changes: 12 additions & 14 deletions packages/catppuccin-vsc-storybook/stories/Syntax.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import React, { useEffect, useState } from "react";
import { getHighlighter, bundledLanguages, type ThemeInput } from "shikiji";
import { getHighlighter, bundledLanguages, type ThemeInput } from "shiki";
import "@catppuccin/palette/css/catppuccin.css";
import mocha from "catppuccin-vsc/themes/mocha.json";
import macchiato from "catppuccin-vsc/themes/macchiato.json";
import frappe from "catppuccin-vsc/themes/frappe.json";
import latte from "catppuccin-vsc/themes/latte.json";

const themes = [mocha, macchiato, frappe, latte].map((theme, i) => {
const themes = [mocha, macchiato, frappe, latte].map((theme, index) => {
return {
...theme,
name: ["mocha", "macchiato", "frappe", "latte"][i],
name: ["mocha", "macchiato", "frappe", "latte"][index],
} as unknown as ThemeInput;
});
const shiki = getHighlighter({
Expand All @@ -27,19 +27,17 @@ export const Syntax = ({
const [rendered, setRendered] = useState<string>("");
useEffect(() => {
(async () => {
const highlighted = await shiki;
setRendered(
(await shiki).codeToHtml(
await fetch(code).then((data) => data.text()),
{
lang: language,
themes: {
light: "latte",
frappe: "frappe",
macchiato: "macchiato",
dark: "mocha",
},
highlighted.codeToHtml(await fetch(code).then((data) => data.text()), {
lang: language,
themes: {
light: "latte",
frappe: "frappe",
macchiato: "macchiato",
dark: "mocha",
},
),
}),
);
})();
}, []);
Expand Down
2 changes: 1 addition & 1 deletion packages/catppuccin-vsc-typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"devDependencies": {
"json-schema-to-typescript": "^13.1.2",
"tsx": "^4.7.1",
"typescript": "^5.3.3"
"typescript": "<5.4.0"
},
"scripts": {
"typegen:update": "tsx update.ts"
Expand Down
4 changes: 2 additions & 2 deletions packages/catppuccin-vsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@
"@catppuccin/palette": "^1.1.0",
"@catppuccin/vsc-typegen": "workspace:*",
"@tsconfig/node18": "^18.2.2",
"@types/node": "^20.11.20",
"@types/node": "^20.11.25",
"@types/tinycolor2": "^1.4.6",
"@types/vscode": "~1.80.0",
"@vscode/vsce": "^2.24.0",
"tinycolor2": "^1.6.0",
"tsup": "^8.0.2",
"tsx": "^4.7.1",
"type-flag": "^3.0.0",
"typescript": "^5.3.3"
"typescript": "<5.4.0"
},
"scripts": {
"core:build": "tsx build.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/catppuccin-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
},
"devDependencies": {
"@tsconfig/node20": "^20.1.2",
"@types/node": "^20.11.20",
"@types/node": "^20.11.25",
"catppuccin-vsc": "workspace:*",
"tsup": "^8.0.2",
"typescript": "^5.3.3"
"typescript": "<5.4.0"
},
"scripts": {
"build": "yarn tsup",
Expand Down
Loading