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

Bumpin time #270

Merged
merged 4 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
"devDependencies": {
"@changesets/cli": "^2.27.8",
"@srcbook/configs": "workspace:^",
"@types/node": "catalog:",
"prettier": "catalog:",
"typescript": "catalog:"
"@types/node": "^20.14.2",
"prettier": "^3.3.3",
"typescript": "5.6.2",
"eslint": "^8.57.0"
},
"dependencies": {
"turbo": "^2.0.14"
"turbo": "^2.1.1"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
24 changes: 11 additions & 13 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,25 @@
"@ai-sdk/anthropic": "catalog:",
"@ai-sdk/openai": "catalog:",
"@srcbook/shared": "workspace:^",
"ai": "^3.3.2",
"better-sqlite3": "^11.0.0",
"ai": "^3.3.33",
"better-sqlite3": "^11.3.0",
"cors": "^2.8.5",
"depcheck": "^1.4.7",
"drizzle-orm": "^0.31.2",
"express": "^4.19.2",
"drizzle-orm": "^0.33.0",
"express": "^4.20.0",
"marked": "catalog:",
"posthog-node": "^4.0.1",
"typescript": "catalog:",
"posthog-node": "^4.2.0",
"ws": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.10",
"@types/better-sqlite3": "^7.6.11",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/node": "catalog:",
"@types/ws": "^8.5.10",
"drizzle-kit": "^0.22.7",
"vite": "^5.2.11",
"vite-node": "^1.6.0",
"vitest": "^1.6.0"
"@types/ws": "^8.5.12",
"drizzle-kit": "^0.24.2",
"vite": "^5.4.4",
"vite-node": "^2.0.5",
"vitest": "^2.0.5"
}
}
1 change: 1 addition & 0 deletions packages/configs/eslint/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module.exports = {
'.*.js',
'node_modules/',
'dist/',
'public/',
],
overrides: [
{
Expand Down
12 changes: 6 additions & 6 deletions packages/configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"./eslint/library.js"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "^2.1.1",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-jsx-a11y": "^6.10.0",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"eslint-plugin-jest": "^28.5.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6"
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.11"
}
}
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"@scure/base": "^1.1.7",
"@scure/base": "^1.1.8",
"zod": "catalog:"
}
}
62 changes: 27 additions & 35 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,59 +17,51 @@
"@codemirror/lang-json": "^6.0.1",
"@codemirror/lang-markdown": "^6.2.5",
"@codemirror/lint": "^6.8.1",
"@codemirror/merge": "^6.6.5",
"@codemirror/merge": "^6.7.0",
"@codemirror/state": "^6.4.1",
"@lezer/highlight": "^1.2.0",
"@lezer/highlight": "^1.2.1",
"@lezer/javascript": "^1.4.17",
"@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-collapsible": "^1.1.0",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-navigation-menu": "^1.2.0",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-select": "^2.1.1",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-switch": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@srcbook/shared": "workspace:^",
"@uiw/codemirror-themes": "^4.22.2",
"@uiw/react-codemirror": "^4.22.0",
"@uiw/codemirror-themes": "^4.23.2",
"@uiw/react-codemirror": "^4.23.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cmdk": "^1.0.0",
"codemirror": "^6.0.1",
"lucide-react": "^0.378.0",
"lucide-react": "^0.439.0",
"marked": "catalog:",
"marked-react": "^2.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-dropzone": "^14.2.3",
"react-hotkeys-hook": "^4.5.0",
"react-resizable-panels": "^2.0.22",
"react-router-dom": "^6.23.0",
"react-hotkeys-hook": "^4.5.1",
"react-resizable-panels": "^2.1.2",
"react-router-dom": "^6.26.2",
"react-textarea-autosize": "^8.5.3",
"sonner": "^1.4.41",
"tailwind-merge": "^2.3.0",
"sonner": "^1.5.0",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7",
"use-debounce": "^10.0.0",
"use-debounce": "^10.0.3",
"zod": "catalog:"
},
"devDependencies": {
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^28.5.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"vite": "^5.2.0"
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.45",
"tailwindcss": "^3.4.11",
"vite": "^5.4.4"
}
}
4 changes: 1 addition & 3 deletions packages/web/src/components/ui/command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ const Command = React.forwardRef<
));
Command.displayName = CommandPrimitive.displayName;

interface CommandDialogProps extends DialogProps {}

const CommandDialog = ({ children, ...props }: CommandDialogProps) => {
const CommandDialog = ({ children, ...props }: DialogProps) => {
return (
<Dialog {...props}>
<DialogContent className="overflow-hidden p-0">
Expand Down
8 changes: 6 additions & 2 deletions packages/web/src/components/ui/heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ export function EditableH1(props: {

function clearError() {
_setError(null);
timeoutRef.current && clearTimeout(timeoutRef.current);
if (timeoutRef.current) {
clearTimeout(timeoutRef.current);
}
}

function setError(error: string) {
timeoutRef.current && clearTimeout(timeoutRef.current);
if (timeoutRef.current) {
clearTimeout(timeoutRef.current);
}
_setError(error);
timeoutRef.current = setTimeout(() => {
_setError(null);
Expand Down
4 changes: 1 addition & 3 deletions packages/web/src/components/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import * as React from 'react';

import { cn } from '@/lib/utils';

export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}

const Input = React.forwardRef<HTMLInputElement, InputProps>(
const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(
({ className, type, ...props }, ref) => {
return (
<input
Expand Down
31 changes: 15 additions & 16 deletions packages/web/src/components/ui/textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@ import * as React from 'react';

import { cn } from '@/lib/utils';

export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}

const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
({ className, ...props }, ref) => {
return (
<textarea
className={cn(
'flex min-h-[60px] w-full rounded-sm border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50',
className,
)}
ref={ref}
{...props}
/>
);
},
);
const Textarea = React.forwardRef<
HTMLTextAreaElement,
React.TextareaHTMLAttributes<HTMLTextAreaElement>
>(({ className, ...props }, ref) => {
return (
<textarea
className={cn(
'flex min-h-[60px] w-full rounded-sm border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50',
className,
)}
ref={ref}
{...props}
/>
);
});
Textarea.displayName = 'Textarea';

export { Textarea };
6 changes: 5 additions & 1 deletion packages/web/src/routes/session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,11 @@ function Session(props: {
// inside of package.json yet. Thus we must specifically install them by name so they are
// installed and added to package.json. Otherwise, we just need to install what is already
// listed inside of package.json.
Array.isArray(outdatedDependencies) ? npmInstall(outdatedDependencies) : npmInstall();
if (Array.isArray(outdatedDependencies)) {
npmInstall(outdatedDependencies);
} else {
npmInstall();
}
},
},
});
Expand Down
Loading