neon 8.3.0 → 8.3.1

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.
@@ -1,6 +1,7 @@
1
1
  //#region src/utils/formats.ts
2
2
  const HAIKU_REGEX = /^[a-z0-9]+-[a-z0-9]+-[a-z0-9]+$/;
3
3
  const looksLikeBranchId = (branch) => branch.startsWith("br-") && HAIKU_REGEX.test(branch.substring(3));
4
+ const looksLikeSnapshotId = (snapshot) => snapshot.startsWith("snap-") && HAIKU_REGEX.test(snapshot.substring(5));
4
5
  const LSN_REGEX = /^[a-fA-F0-9]{1,8}\/[a-fA-F0-9]{1,8}$/;
5
6
  const looksLikeLSN = (lsn) => LSN_REGEX.test(lsn);
6
7
  /** Normalize a user-supplied date to an ISO 8601 string, or throw a friendly error. */
@@ -14,4 +15,4 @@ const looksLikeTimestamp = (timestamp) => {
14
15
  return /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?([+-]\d{2}:\d{2}|Z)$/.test(timestamp);
15
16
  };
16
17
  //#endregion
17
- export { looksLikeBranchId, looksLikeLSN, looksLikeTimestamp, toIso };
18
+ export { looksLikeBranchId, looksLikeLSN, looksLikeSnapshotId, looksLikeTimestamp, toIso };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neon",
3
- "version": "8.3.0",
3
+ "version": "8.3.1",
4
4
  "description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
5
5
  "keywords": [
6
6
  "neon",
@@ -46,7 +46,6 @@
46
46
  "@clack/prompts": "0.10.1",
47
47
  "@hono/node-server": "2.0.4",
48
48
  "@segment/analytics-node": "1.3.0",
49
- "@sentry/core": "11.2.0",
50
49
  "add-mcp": "2.0.0",
51
50
  "chalk": "5.3.0",
52
51
  "chokidar": "5.0.0",
@@ -65,8 +64,8 @@
65
64
  "yaml": "^2.9.0",
66
65
  "yargs": "17.7.2",
67
66
  "yoctocolors": "^2.1.2",
68
- "@neon/config": "1.8.6",
69
67
  "@neon/config-runtime": "1.8.0",
68
+ "@neon/config": "1.8.6",
70
69
  "@neon/sdk": "7.0.1"
71
70
  },
72
71
  "optionalDependencies": {
@@ -79,6 +78,7 @@
79
78
  "@rollup/plugin-commonjs": "25.0.8",
80
79
  "@rollup/plugin-json": "6.1.0",
81
80
  "@rollup/plugin-node-resolve": "15.2.3",
81
+ "@sentry/core": "11.2.0",
82
82
  "@testcontainers/postgresql": "^11.14.0",
83
83
  "@types/diff": "5.2.1",
84
84
  "@types/express": "4.17.21",