@netlify/dev 4.15.0 → 4.16.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.
- package/dist/main.cjs +7 -2
- package/dist/main.d.cts +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +4 -1
- package/package.json +12 -12
package/dist/main.cjs
CHANGED
|
@@ -30,7 +30,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/main.ts
|
|
31
31
|
var main_exports = {};
|
|
32
32
|
__export(main_exports, {
|
|
33
|
-
NetlifyDev: () => NetlifyDev
|
|
33
|
+
NetlifyDev: () => NetlifyDev,
|
|
34
|
+
applyMigrations: () => import_db_dev2.applyMigrations,
|
|
35
|
+
resetDatabase: () => import_db_dev2.resetDatabase
|
|
34
36
|
});
|
|
35
37
|
module.exports = __toCommonJS(main_exports);
|
|
36
38
|
var import_node_fs2 = require("fs");
|
|
@@ -46,6 +48,7 @@ var import_images = require("@netlify/images");
|
|
|
46
48
|
var import_redirects = require("@netlify/redirects");
|
|
47
49
|
var import_static = require("@netlify/static");
|
|
48
50
|
var import_db_dev = require("@netlify/db-dev");
|
|
51
|
+
var import_db_dev2 = require("@netlify/db-dev");
|
|
49
52
|
|
|
50
53
|
// src/lib/env.ts
|
|
51
54
|
var SUPPORTED_CONTEXTS = ["all", "production", "deploy-preview", "branch-deploy", "dev", "dev-server"];
|
|
@@ -741,5 +744,7 @@ var NetlifyDev = class {
|
|
|
741
744
|
};
|
|
742
745
|
// Annotate the CommonJS export names for ESM import in node:
|
|
743
746
|
0 && (module.exports = {
|
|
744
|
-
NetlifyDev
|
|
747
|
+
NetlifyDev,
|
|
748
|
+
applyMigrations,
|
|
749
|
+
resetDatabase
|
|
745
750
|
});
|
package/dist/main.d.cts
CHANGED
|
@@ -2,6 +2,7 @@ import { IncomingMessage } from 'node:http';
|
|
|
2
2
|
import { Logger } from '@netlify/dev-utils';
|
|
3
3
|
import { HeadersCollector } from '@netlify/headers';
|
|
4
4
|
import { NetlifyDB } from '@netlify/db-dev';
|
|
5
|
+
export { SQLExecutor, applyMigrations, resetDatabase } from '@netlify/db-dev';
|
|
5
6
|
|
|
6
7
|
interface Features {
|
|
7
8
|
/**
|
package/dist/main.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { IncomingMessage } from 'node:http';
|
|
|
2
2
|
import { Logger } from '@netlify/dev-utils';
|
|
3
3
|
import { HeadersCollector } from '@netlify/headers';
|
|
4
4
|
import { NetlifyDB } from '@netlify/db-dev';
|
|
5
|
+
export { SQLExecutor, applyMigrations, resetDatabase } from '@netlify/db-dev';
|
|
5
6
|
|
|
6
7
|
interface Features {
|
|
7
8
|
/**
|
package/dist/main.js
CHANGED
|
@@ -20,6 +20,7 @@ import { ImageHandler } from "@netlify/images";
|
|
|
20
20
|
import { RedirectsHandler } from "@netlify/redirects";
|
|
21
21
|
import { StaticHandler } from "@netlify/static";
|
|
22
22
|
import { NetlifyDB } from "@netlify/db-dev";
|
|
23
|
+
import { applyMigrations, resetDatabase } from "@netlify/db-dev";
|
|
23
24
|
|
|
24
25
|
// src/lib/env.ts
|
|
25
26
|
var SUPPORTED_CONTEXTS = ["all", "production", "deploy-preview", "branch-deploy", "dev", "dev-server"];
|
|
@@ -714,5 +715,7 @@ var NetlifyDev = class {
|
|
|
714
715
|
}
|
|
715
716
|
};
|
|
716
717
|
export {
|
|
717
|
-
NetlifyDev
|
|
718
|
+
NetlifyDev,
|
|
719
|
+
applyMigrations,
|
|
720
|
+
resetDatabase
|
|
718
721
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/dev",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.16.1",
|
|
4
4
|
"description": "Emulation of the Netlify environment for local development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -51,23 +51,23 @@
|
|
|
51
51
|
"author": "Netlify Inc.",
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@netlify/api": "^14.0.17",
|
|
54
|
-
"@netlify/types": "2.
|
|
54
|
+
"@netlify/types": "2.4.0",
|
|
55
55
|
"tsup": "^8.0.0",
|
|
56
56
|
"vitest": "^3.0.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@netlify/ai": "^0.4.0",
|
|
60
|
-
"@netlify/blobs": "10.7.
|
|
60
|
+
"@netlify/blobs": "10.7.2",
|
|
61
61
|
"@netlify/config": "^24.4.0",
|
|
62
|
-
"@netlify/db-dev": "0.
|
|
63
|
-
"@netlify/dev-utils": "4.4.
|
|
64
|
-
"@netlify/edge-functions-dev": "1.0.
|
|
65
|
-
"@netlify/functions-dev": "1.2.
|
|
66
|
-
"@netlify/headers": "2.1.
|
|
67
|
-
"@netlify/images": "1.3.
|
|
68
|
-
"@netlify/redirects": "3.1.
|
|
69
|
-
"@netlify/runtime": "4.1.
|
|
70
|
-
"@netlify/static": "3.1.
|
|
62
|
+
"@netlify/db-dev": "0.7.0",
|
|
63
|
+
"@netlify/dev-utils": "4.4.1",
|
|
64
|
+
"@netlify/edge-functions-dev": "1.0.13",
|
|
65
|
+
"@netlify/functions-dev": "1.2.1",
|
|
66
|
+
"@netlify/headers": "2.1.5",
|
|
67
|
+
"@netlify/images": "1.3.5",
|
|
68
|
+
"@netlify/redirects": "3.1.7",
|
|
69
|
+
"@netlify/runtime": "4.1.18",
|
|
70
|
+
"@netlify/static": "3.1.5",
|
|
71
71
|
"ulid": "^3.0.0"
|
|
72
72
|
}
|
|
73
73
|
}
|