@tinacms/cli 0.0.0-d80714b-20241205222511 → 0.0.0-d94de9b-20250707010010

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ export declare class BuildCommand extends BaseCommand {
8
8
  partialReindex: boolean;
9
9
  tinaGraphQLVersion: string;
10
10
  /**
11
- * This option allows the user to skip the tina cloud checks if they want to. This could be useful for mismatched GraphQL versions or if they want to build only using the local client and never connect to Tina Cloud
11
+ * This option allows the user to skip the TinaCloud checks if they want to. This could be useful for mismatched GraphQL versions or if they want to build only using the local client and never connect to TinaCloud
12
12
  */
13
13
  skipCloudChecks: boolean;
14
14
  skipSearchIndex: boolean;
@@ -20,20 +20,28 @@ export declare class BuildCommand extends BaseCommand {
20
20
  catch(error: any): Promise<void>;
21
21
  execute(): Promise<number | void>;
22
22
  checkClientInfo(configManager: ConfigManager, apiURL: string, previewBaseBranch?: string): Promise<{
23
+ branchKnown: boolean;
23
24
  hasUpstream: boolean;
25
+ timestamp: number;
26
+ detectedBotBranch: boolean;
27
+ defaultBranch: string | undefined;
24
28
  }>;
25
29
  syncProject(configManager: ConfigManager, apiURL: string, options?: {
26
30
  upstreamBranch?: string;
27
31
  previewBaseBranch?: string;
28
32
  previewName?: string;
29
33
  }): Promise<void>;
30
- checkGraphqlSchema(configManager: ConfigManager, database: Database, apiURL: string): Promise<void>;
31
- checkTinaSchema(configManager: ConfigManager, database: Database, apiURL: string, previewName: string, verbose: boolean): Promise<void>;
34
+ checkGraphqlSchema(configManager: ConfigManager, database: Database, apiURL: string, timestamp: number): Promise<void>;
35
+ checkTinaSchema(configManager: ConfigManager, database: Database, apiURL: string, previewName: string, verbose: boolean, timestamp: number): Promise<void>;
32
36
  }
33
37
  export declare const fetchRemoteGraphqlSchema: ({ url, token, }: {
34
38
  url: string;
35
39
  token?: string;
36
- }) => Promise<any>;
40
+ }) => Promise<{
41
+ remoteSchema: any;
42
+ remoteRuntimeVersion: string;
43
+ remoteProjectVersion: string;
44
+ }>;
37
45
  export declare const fetchSchemaSha: ({ url, token, }: {
38
46
  url: string;
39
47
  token?: string;
@@ -1,16 +1,19 @@
1
1
  import { Database } from '@tinacms/graphql';
2
+ import { SearchIndexer } from '@tinacms/search';
3
+ import AsyncLock from 'async-lock';
2
4
  import { ConfigManager } from '../../config-manager';
3
5
  import { BaseCommand } from '../baseCommands';
4
- import { SearchIndexer } from '@tinacms/search';
5
6
  export declare class DevCommand extends BaseCommand {
6
7
  static paths: string[][];
7
8
  watchFolders: string;
8
9
  noWatch: boolean;
9
10
  outputSearchIndexPath: string;
11
+ noServer: boolean;
12
+ indexingLock: AsyncLock;
10
13
  static usage: import("clipanion").Usage;
11
14
  catch(error: any): Promise<void>;
12
15
  logDeprecationWarnings(): void;
13
16
  execute(): Promise<number | void>;
14
- watchContentFiles(configManager: ConfigManager, database: Database, searchIndexer?: SearchIndexer): void;
15
- watchQueries(configManager: ConfigManager, callback: () => Promise<string>): void;
17
+ watchContentFiles(configManager: ConfigManager, database: Database, databaseLock: (fn: () => Promise<void>) => Promise<void>, searchIndexer?: SearchIndexer): void;
18
+ watchQueries(configManager: ConfigManager, databaseLock: (fn: () => Promise<void>) => Promise<void>, callback: () => Promise<string>): void;
16
19
  }
@@ -1,3 +1,3 @@
1
1
  import type { Database } from '@tinacms/graphql';
2
2
  import { ConfigManager } from '../../../config-manager';
3
- export declare const createDevServer: (configManager: ConfigManager, database: Database, searchIndex: any, apiURL: string, noWatch: boolean) => Promise<import("vite").ViteDevServer>;
3
+ export declare const createDevServer: (configManager: ConfigManager, database: Database, searchIndex: any, apiURL: string, noWatch: boolean, databaseLock: (fn: () => Promise<void>) => Promise<void>) => Promise<import("vite").ViteDevServer>;
@@ -55,7 +55,12 @@ export declare class ConfigManager {
55
55
  shouldSkipSDK(): boolean;
56
56
  processConfig(): Promise<void>;
57
57
  getTinaFolderPath(rootPath: any): Promise<string>;
58
- getTinaGraphQLVersion(): string;
58
+ getTinaGraphQLVersion(): {
59
+ fullVersion: string;
60
+ major: string;
61
+ minor: string;
62
+ patch: string;
63
+ };
59
64
  printGeneratedClientFilePath(): string;
60
65
  printGeneratedTypesFilePath(): string;
61
66
  printoutputHTMLFilePath(): string;
@@ -22,7 +22,7 @@ interface StaticMediaItem {
22
22
  export interface StaticMedia {
23
23
  [offset: string]: StaticMediaItem[];
24
24
  }
25
- export declare const createConfig: ({ configManager, database, apiURL, plugins, noWatch, rollupOptions, }: {
25
+ export declare const createConfig: ({ configManager, apiURL, plugins, noWatch, rollupOptions, }: {
26
26
  configManager: ConfigManager;
27
27
  database: Database;
28
28
  apiURL: string;
@@ -7,11 +7,12 @@ import type { ConfigManager } from '../config-manager';
7
7
  export declare const transformTsxPlugin: ({ configManager: _configManager, }: {
8
8
  configManager: ConfigManager;
9
9
  }) => Plugin;
10
- export declare const devServerEndPointsPlugin: ({ configManager, apiURL, database, searchIndex, }: {
10
+ export declare const devServerEndPointsPlugin: ({ configManager, apiURL, database, searchIndex, databaseLock, }: {
11
11
  apiURL: string;
12
12
  database: Database;
13
13
  configManager: ConfigManager;
14
14
  searchIndex: any;
15
+ databaseLock: (fn: () => Promise<void>) => Promise<void>;
15
16
  }) => Plugin;
16
17
  export interface ViteSvgrOptions {
17
18
  /**
@@ -2,4 +2,4 @@
2
2
 
3
3
  */
4
4
  import http from 'node:http';
5
- export declare const gqlServer: (database: any, verbose: boolean) => Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>>;
5
+ export declare const gqlServer: (database: any, verbose: boolean) => Promise<http.Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>>;
@@ -1,4 +1,6 @@
1
1
  /**
2
2
 
3
3
  */
4
+ import { ChangeType } from '@graphql-inspector/core';
4
5
  export declare const parseMediaFolder: (str: string) => string;
6
+ export declare const getFaqLink: (type: ChangeType) => string | null;
@@ -1,3 +1,4 @@
1
+ export declare function timeout(ms: any): Promise<void>;
1
2
  export declare function sleepAndCallFunc<T>({ fn, ms, }: {
2
3
  fn: () => Promise<T>;
3
4
  ms: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "0.0.0-d80714b-20241205222511",
3
+ "version": "0.0.0-d94de9b-20250707010010",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -20,6 +20,10 @@
20
20
  }
21
21
  ]
22
22
  },
23
+ "peerDependencies": {
24
+ "react": ">=18.3.1 <20.0.0",
25
+ "react-dom": ">=18.3.1 <20.0.0"
26
+ },
23
27
  "devDependencies": {
24
28
  "@types/clear": "0.1.0",
25
29
  "@types/cli-spinner": "^0.2.3",
@@ -37,24 +41,25 @@
37
41
  "@types/prompts": "^2.4.9",
38
42
  "@types/yup": "^0.32.0",
39
43
  "jest": "^29.7.0",
40
- "@tinacms/scripts": "1.3.1"
44
+ "@tinacms/scripts": "1.3.5"
41
45
  },
42
46
  "dependencies": {
43
47
  "@graphql-codegen/core": "^2.6.8",
44
48
  "@graphql-codegen/plugin-helpers": "latest",
45
- "@graphql-codegen/typescript": "^4.1.1",
46
- "@graphql-codegen/typescript-operations": "^4.3.1",
49
+ "@graphql-codegen/typescript": "^4.1.3",
50
+ "@graphql-codegen/typescript-operations": "^4.4.1",
47
51
  "@graphql-codegen/visitor-plugin-common": "^4.1.2",
48
52
  "@graphql-inspector/core": "^4.2.2",
49
53
  "@graphql-tools/graphql-file-loader": "^7.5.17",
50
54
  "@graphql-tools/load": "^7.8.14",
51
- "@rollup/pluginutils": "^5.1.3",
55
+ "@rollup/pluginutils": "^5.1.4",
52
56
  "@svgr/core": "8.1.0",
53
57
  "@tailwindcss/aspect-ratio": "^0.4.2",
54
58
  "@tailwindcss/container-queries": "^0.1.1",
55
- "@tailwindcss/typography": "^0.5.15",
59
+ "@tailwindcss/typography": "^0.5.16",
56
60
  "@vitejs/plugin-react": "3.1.0",
57
61
  "altair-express-middleware": "^7.3.6",
62
+ "async-lock": "^1.4.1",
58
63
  "auto-bind": "^4.0.0",
59
64
  "body-parser": "^1.20.3",
60
65
  "busboy": "^1.6.0",
@@ -64,9 +69,9 @@
64
69
  "clipanion": "^3.2.1",
65
70
  "cors": "^2.8.5",
66
71
  "crypto-js": "^4.2.0",
67
- "dotenv": "^16.4.5",
68
- "esbuild": "^0.18.20",
69
- "fs-extra": "^11.2.0",
72
+ "dotenv": "^16.4.7",
73
+ "esbuild": "^0.24.2",
74
+ "fs-extra": "^11.3.0",
70
75
  "graphql": "15.8.0",
71
76
  "js-yaml": "^4.1.0",
72
77
  "log4js": "^6.9.1",
@@ -77,19 +82,19 @@
77
82
  "prettier": "^2.8.8",
78
83
  "progress": "^2.0.3",
79
84
  "prompts": "^2.4.2",
80
- "readable-stream": "^4.5.2",
81
- "tailwindcss": "^3.4.15",
85
+ "readable-stream": "^4.7.0",
86
+ "tailwindcss": "^3.4.17",
82
87
  "typanion": "3.13.0",
83
- "typescript": "^5.6.3",
84
- "vite": "^4.5.5",
85
- "yup": "^1.4.0",
86
- "zod": "^3.23.8",
87
- "@tinacms/app": "0.0.0-d80714b-20241205222511",
88
- "@tinacms/graphql": "1.5.8",
89
- "@tinacms/schema-tools": "1.6.8",
90
- "@tinacms/search": "1.0.35",
91
- "@tinacms/metrics": "1.0.8",
92
- "tinacms": "0.0.0-d80714b-20241205222511"
88
+ "typescript": "^5.7.3",
89
+ "vite": "^4.5.9",
90
+ "yup": "^1.6.1",
91
+ "zod": "^3.24.2",
92
+ "@tinacms/app": "0.0.0-d94de9b-20250707010010",
93
+ "@tinacms/graphql": "1.5.19",
94
+ "@tinacms/metrics": "1.0.9",
95
+ "@tinacms/schema-tools": "1.8.0",
96
+ "@tinacms/search": "1.0.46",
97
+ "tinacms": "0.0.0-d94de9b-20250707010010"
93
98
  },
94
99
  "publishConfig": {
95
100
  "registry": "https://registry.npmjs.org"