@netlify/dev 4.16.4 → 4.17.0

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.
package/dist/main.cjs CHANGED
@@ -31,8 +31,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var main_exports = {};
32
32
  __export(main_exports, {
33
33
  NetlifyDev: () => NetlifyDev,
34
- applyMigrations: () => import_db_dev2.applyMigrations,
35
- resetDatabase: () => import_db_dev2.resetDatabase
34
+ applyMigrations: () => import_database_dev2.applyMigrations,
35
+ resetDatabase: () => import_database_dev2.resetDatabase
36
36
  });
37
37
  module.exports = __toCommonJS(main_exports);
38
38
  var import_node_fs2 = require("fs");
@@ -47,8 +47,8 @@ var import_headers = require("@netlify/headers");
47
47
  var import_images = require("@netlify/images");
48
48
  var import_redirects = require("@netlify/redirects");
49
49
  var import_static = require("@netlify/static");
50
- var import_db_dev = require("@netlify/db-dev");
51
- var import_db_dev2 = require("@netlify/db-dev");
50
+ var import_database_dev = require("@netlify/database-dev");
51
+ var import_database_dev2 = require("@netlify/database-dev");
52
52
 
53
53
  // src/lib/env.ts
54
54
  var SUPPORTED_CONTEXTS = ["all", "production", "deploy-preview", "branch-deploy", "dev", "dev-server"];
@@ -570,7 +570,7 @@ var NetlifyDev = class {
570
570
  if (this.#features.db) {
571
571
  try {
572
572
  const dbDirectory = import_node_path2.default.join(this.#projectRoot, ".netlify", "db");
573
- const db = new import_db_dev.NetlifyDB({ directory: dbDirectory });
573
+ const db = new import_database_dev.NetlifyDB({ directory: dbDirectory });
574
574
  const connectionString = await db.start();
575
575
  runtime.env.set("NETLIFY_DB_URL", connectionString);
576
576
  state.set("dbConnectionString", connectionString);
@@ -581,7 +581,7 @@ var NetlifyDev = class {
581
581
  });
582
582
  } catch (error) {
583
583
  this.#db = void 0;
584
- this.#logger.warn(`Failed to start Netlify DB locally: ${String(error)}`);
584
+ this.#logger.warn(`Failed to start Netlify Database locally: ${String(error)}`);
585
585
  }
586
586
  }
587
587
  if (this.#features.aiGateway && config?.siteInfo?.capabilities?.ai_gateway_disabled) {
package/dist/main.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { IncomingMessage } from 'node:http';
2
2
  import { Logger } from '@netlify/dev-utils';
3
3
  import { HeadersCollector } from '@netlify/headers';
4
- import { NetlifyDB } from '@netlify/db-dev';
5
- export { SQLExecutor, applyMigrations, resetDatabase } from '@netlify/db-dev';
4
+ import { NetlifyDB } from '@netlify/database-dev';
5
+ export { SQLExecutor, applyMigrations, resetDatabase } from '@netlify/database-dev';
6
6
 
7
7
  interface Features {
8
8
  /**
package/dist/main.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { IncomingMessage } from 'node:http';
2
2
  import { Logger } from '@netlify/dev-utils';
3
3
  import { HeadersCollector } from '@netlify/headers';
4
- import { NetlifyDB } from '@netlify/db-dev';
5
- export { SQLExecutor, applyMigrations, resetDatabase } from '@netlify/db-dev';
4
+ import { NetlifyDB } from '@netlify/database-dev';
5
+ export { SQLExecutor, applyMigrations, resetDatabase } from '@netlify/database-dev';
6
6
 
7
7
  interface Features {
8
8
  /**
package/dist/main.js CHANGED
@@ -19,8 +19,8 @@ import { HeadersHandler } from "@netlify/headers";
19
19
  import { ImageHandler } from "@netlify/images";
20
20
  import { RedirectsHandler } from "@netlify/redirects";
21
21
  import { StaticHandler } from "@netlify/static";
22
- import { NetlifyDB } from "@netlify/db-dev";
23
- import { applyMigrations, resetDatabase } from "@netlify/db-dev";
22
+ import { NetlifyDB } from "@netlify/database-dev";
23
+ import { applyMigrations, resetDatabase } from "@netlify/database-dev";
24
24
 
25
25
  // src/lib/env.ts
26
26
  var SUPPORTED_CONTEXTS = ["all", "production", "deploy-preview", "branch-deploy", "dev", "dev-server"];
@@ -553,7 +553,7 @@ var NetlifyDev = class {
553
553
  });
554
554
  } catch (error) {
555
555
  this.#db = void 0;
556
- this.#logger.warn(`Failed to start Netlify DB locally: ${String(error)}`);
556
+ this.#logger.warn(`Failed to start Netlify Database locally: ${String(error)}`);
557
557
  }
558
558
  }
559
559
  if (this.#features.aiGateway && config?.siteInfo?.capabilities?.ai_gateway_disabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/dev",
3
- "version": "4.16.4",
3
+ "version": "4.17.0",
4
4
  "description": "Emulation of the Netlify environment for local development",
5
5
  "type": "module",
6
6
  "engines": {
@@ -59,10 +59,10 @@
59
59
  "@netlify/ai": "^0.4.1",
60
60
  "@netlify/blobs": "10.7.4",
61
61
  "@netlify/config": "^24.4.3",
62
- "@netlify/db-dev": "0.7.0",
62
+ "@netlify/database-dev": "0.8.0",
63
63
  "@netlify/dev-utils": "4.4.3",
64
64
  "@netlify/edge-functions-dev": "1.0.16",
65
- "@netlify/functions-dev": "1.2.4",
65
+ "@netlify/functions-dev": "1.2.5",
66
66
  "@netlify/headers": "2.1.8",
67
67
  "@netlify/images": "1.3.7",
68
68
  "@netlify/redirects": "3.1.10",