Skip to content
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 apps/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"react-router-dom": "^7.14.0",
"sonner": "^2.0.7",
"tailwindcss": "^4.2.2",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vite": "^8.0.5",
"vitest": "^4.1.2"
},
Expand Down
4 changes: 2 additions & 2 deletions apps/console/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* @see https://github.com/objectstack-ai/objectui
*/

import { fileURLToPath } from 'url';
import { dirname, resolve } from 'path';
import { fileURLToPath } from 'node:url';
import { dirname, resolve } from 'node:path';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
Expand Down
3 changes: 2 additions & 1 deletion apps/console/tsconfig.plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"declaration": true,
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true
"esModuleInterop": true,
"types": ["node"]
},
"include": ["plugin.ts"]
}
2 changes: 1 addition & 1 deletion apps/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
"postcss": "^8.5.8",
"tailwindcss": "^4.2.2",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.9.3"
"typescript": "^6.0.2"
}
}
1 change: 1 addition & 0 deletions apps/site/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"baseUrl": ".",
"ignoreDeprecations": "6.0",
"target": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/crm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"devDependencies": {
"@objectstack/cli": "^4.0.2",
"tsx": "^4.21.0",
"typescript": "^5.9.3"
"typescript": "^6.0.2"
}
}
2 changes: 1 addition & 1 deletion examples/kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
},
"devDependencies": {
"@objectstack/cli": "^4.0.2",
"typescript": "^5.9.3"
"typescript": "^6.0.2"
}
}
2 changes: 1 addition & 1 deletion examples/msw-todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"msw": "^2.13.0",
"postcss": "^8.5.8",
"tailwindcss": "^4.2.2",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vite": "^8.0.5"
},
"msw": {
Expand Down
1 change: 1 addition & 0 deletions examples/msw-todo/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
1 change: 1 addition & 0 deletions examples/msw-todo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"allowArbitraryExtensions": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
Expand Down
2 changes: 1 addition & 1 deletion examples/todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
},
"devDependencies": {
"@objectstack/cli": "^4.0.2",
"typescript": "^5.9.3"
"typescript": "^6.0.2"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"turbo": "^2.9.4",
"typedoc": "^0.28.18",
"typedoc-plugin-markdown": "^4.11.0",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"typescript-eslint": "^8.58.0",
"vite-plugin-compression2": "^2.5.3",
"vitest": "^4.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"devDependencies": {
"@types/react": "19.2.14",
"react": "19.2.4",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vitest": "^4.1.2"
}
}
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@types/js-yaml": "^4.0.9",
"@types/node": "^25.5.2",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vitest": "^4.1.2"
}
}
2 changes: 1 addition & 1 deletion packages/collaboration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"devDependencies": {
"@types/react": "19.2.14",
"react": "19.2.4",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vitest": "^4.1.2"
}
}
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"shadcn": "^4.1.2",
"storybook": "^8.6.18",
"tailwindcss": "^4.2.2",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vite": "^8.0.5",
"vite-plugin-dts": "^4.5.4"
}
Expand Down
1 change: 1 addition & 0 deletions packages/components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default defineConfig({
react(),
dts({
insertTypesEntry: true,
compilerOptions: { rootDir: resolve(__dirname, '../..') },
include: ['src'],
}),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"zod": "^4.3.6"
},
"devDependencies": {
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vitest": "^4.1.2"
}
}
9 changes: 4 additions & 5 deletions packages/core/src/errors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ export class ObjectUIError extends Error {
this.name = 'ObjectUIError';

// Maintains proper stack trace for where error was thrown (only in V8)
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
if ((Error as any).captureStackTrace) {
(Error as any).captureStackTrace(this, this.constructor);
}
}

Expand Down Expand Up @@ -203,7 +203,7 @@ function interpolate(
params: Record<string, string>,
): string {
return template.replace(/\$\{(\w+)\}/g, (_match, key: string) => {
if (!(key in params) && typeof process !== 'undefined' && process.env?.NODE_ENV !== 'production') {
if (!(key in params) && (globalThis as any).process?.env?.NODE_ENV !== 'production') {
console.warn(`[ObjectUI] Missing interpolation parameter "${key}" in error message template.`);
}
return params[key] ?? `\${${key}}`;
Expand Down Expand Up @@ -254,8 +254,7 @@ export function createError(
*/
export function formatErrorMessage(
error: ObjectUIError,
isDev: boolean = typeof process !== 'undefined' &&
process.env?.NODE_ENV !== 'production',
isDev: boolean = (globalThis as any).process?.env?.NODE_ENV !== 'production',
): string {
const entry = ERROR_CODES[error.code];

Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/utils/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ export function isDebugEnabled(): boolean {
if (g === true || g === 'true') return true;

// 3. process.env
if (typeof process !== 'undefined' && process.env?.OBJECTUI_DEBUG === 'true') return true;
const proc = (globalThis as any).process;
if (proc?.env?.OBJECTUI_DEBUG === 'true') return true;

return false;
} catch {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/node": "^25.5.2",
"@types/prompts": "^2.4.9",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vitest": "^4.1.2"
}
}
2 changes: 1 addition & 1 deletion packages/data-objectstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"devDependencies": {
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vitest": "^4.1.2"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/data-objectstack/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export class ObjectStackError extends Error {
this.name = 'ObjectStackError';

// Maintains proper stack trace for where error was thrown (only in V8)
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
if ((Error as any).captureStackTrace) {
(Error as any).captureStackTrace(this, this.constructor);
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/fields/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vite": "^8.0.5",
"vite-plugin-dts": "^4.5.4"
},
Expand Down
1 change: 1 addition & 0 deletions packages/fields/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
react(),
dts({
insertTypesEntry: true,
compilerOptions: { rootDir: path.resolve(__dirname, '../..') },
}),
],
resolve: {
Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"devDependencies": {
"@types/react": "19.2.14",
"react": "19.2.4",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vitest": "^4.1.2"
}
}
1 change: 1 addition & 0 deletions packages/layout/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
react(),
dts({
insertTypesEntry: true,
compilerOptions: { rootDir: resolve(__dirname, '../..') },
include: ['src'],
}),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"devDependencies": {
"@types/react": "19.2.14",
"react": "19.2.4",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vitest": "^4.1.2"
}
}
2 changes: 1 addition & 1 deletion packages/permissions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"devDependencies": {
"@types/react": "19.2.14",
"react": "19.2.4",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vitest": "^4.1.2"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-aggrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@vitejs/plugin-react": "^6.0.1",
"ag-grid-react": "^35.2.0",
"ag-grid-community": "^35.2.0",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vite": "^8.0.5",
"vite-plugin-dts": "^4.5.4"
}
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-aggrid/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default defineConfig({
react(),
dts({
insertTypesEntry: true,
compilerOptions: { rootDir: resolve(__dirname, '../..') },
include: ['src'],
exclude: ['**/*.test.ts', '**/*.test.tsx', 'node_modules'],
skipDiagnostics: true,
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-ai/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
react(),
dts({
insertTypesEntry: true,
compilerOptions: { rootDir: resolve(__dirname, '../..') },
include: ['src'],
exclude: ['**/*.test.ts', '**/*.test.tsx', 'node_modules'],
skipDiagnostics: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vite": "^8.0.5",
"vite-plugin-dts": "^4.5.4"
}
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-calendar/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default defineConfig({
react(),
dts({
insertTypesEntry: true,
compilerOptions: { rootDir: resolve(__dirname, '../..') },
include: ['src'],
exclude: ['**/*.test.ts', '**/*.test.tsx', 'node_modules'],
skipDiagnostics: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vite": "^8.0.5",
"vite-plugin-dts": "^4.5.4"
}
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-charts/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default defineConfig({
react(),
dts({
insertTypesEntry: true,
compilerOptions: { rootDir: resolve(__dirname, '../..') },
include: ['src'],
exclude: ['**/*.test.ts', '**/*.test.tsx', 'node_modules'],
skipDiagnostics: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-chatbot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@types/react-dom": "19.2.3",
"@types/react-syntax-highlighter": "^15.5.13",
"@vitejs/plugin-react": "^6.0.1",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vite": "^8.0.5",
"vite-plugin-dts": "^4.5.4"
}
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-chatbot/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default defineConfig({
react(),
dts({
insertTypesEntry: true,
compilerOptions: { rootDir: resolve(__dirname, '../..') },
include: ['src'],
exclude: ['**/*.test.ts', '**/*.test.tsx', 'node_modules'],
skipDiagnostics: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"@types/react-grid-layout": "^2.1.0",
"@vitejs/plugin-react": "^6.0.1",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vite": "^8.0.5",
"vite-plugin-dts": "^4.5.4"
}
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-dashboard/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
react(),
dts({
insertTypesEntry: true,
compilerOptions: { rootDir: resolve(__dirname, '../..') },
include: ['src'],
exclude: ['**/*.test.ts', '**/*.test.tsx', 'node_modules'],
skipDiagnostics: true,
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-designer/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
react(),
dts({
insertTypesEntry: true,
compilerOptions: { rootDir: resolve(__dirname, '../..') },
include: ['src'],
exclude: ['**/*.test.ts', '**/*.test.tsx', 'node_modules'],
skipDiagnostics: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-detail/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vite": "^8.0.5",
"vite-plugin-dts": "^4.5.4",
"vitest": "^4.1.2"
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-detail/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
react(),
dts({
insertTypesEntry: true,
compilerOptions: { rootDir: resolve(__dirname, '../..') },
outDir: 'dist',
tsconfigPath: './tsconfig.json',
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"vite": "^8.0.5",
"vite-plugin-dts": "^4.5.4"
}
Expand Down
Loading
Loading