@sveltejs/adapter-netlify 1.0.0-next.61 → 1.0.0-next.64
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/README.md +1 -1
- package/files/cjs/{multipart-parser-55fbd1f3.js → multipart-parser-d6fbdf05.js} +2 -8
- package/files/cjs/serverless.js +4 -1
- package/files/cjs/shims.js +211 -71
- package/files/edge.js +2 -0
- package/files/esm/{multipart-parser-172e1198.js → multipart-parser-78ee0a95.js} +2 -8
- package/files/esm/serverless.js +4 -1
- package/files/esm/shims.js +212 -72
- package/index.d.ts +1 -3
- package/index.js +2 -2
- package/package.json +12 -4
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ New projects will use Node 16 by default. However, if you're upgrading a project
|
|
|
48
48
|
|
|
49
49
|
## Netlify Edge Functions (beta)
|
|
50
50
|
|
|
51
|
-
SvelteKit supports the beta release of Netlify Edge Functions. If you pass the option `edge: true` to the `adapter` function, server-side rendering will happen in a Deno-based edge function that's deployed close to the site visitor. If set to `false` (the default), the site will deploy to standard Node-based Netlify Functions.
|
|
51
|
+
SvelteKit supports the beta release of [Netlify Edge Functions](https://docs.netlify.com/netlify-labs/experimental-features/edge-functions/). If you pass the option `edge: true` to the `adapter` function, server-side rendering will happen in a Deno-based edge function that's deployed close to the site visitor. If set to `false` (the default), the site will deploy to standard Node-based Netlify Functions.
|
|
52
52
|
|
|
53
53
|
## Netlify alternatives to SvelteKit functionality
|
|
54
54
|
|
|
@@ -2,23 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
require('node:fs');
|
|
4
4
|
require('node:path');
|
|
5
|
-
var node_worker_threads = require('node:worker_threads');
|
|
6
5
|
var shims = require('./shims.js');
|
|
7
6
|
require('node:http');
|
|
8
7
|
require('node:https');
|
|
9
8
|
require('node:zlib');
|
|
10
9
|
require('node:stream');
|
|
10
|
+
require('node:buffer');
|
|
11
11
|
require('node:util');
|
|
12
12
|
require('node:url');
|
|
13
|
-
require('net');
|
|
13
|
+
require('node:net');
|
|
14
14
|
require('crypto');
|
|
15
15
|
|
|
16
|
-
globalThis.DOMException || (() => {
|
|
17
|
-
const port = new node_worker_threads.MessageChannel().port1;
|
|
18
|
-
const ab = new ArrayBuffer(0);
|
|
19
|
-
try { port.postMessage(ab, [ab, ab]); } catch (err) { return err.constructor }
|
|
20
|
-
})();
|
|
21
|
-
|
|
22
16
|
let s = 0;
|
|
23
17
|
const S = {
|
|
24
18
|
START_BOUNDARY: s++,
|
package/files/cjs/serverless.js
CHANGED
|
@@ -8,9 +8,12 @@ require('node:http');
|
|
|
8
8
|
require('node:https');
|
|
9
9
|
require('node:zlib');
|
|
10
10
|
require('node:stream');
|
|
11
|
+
require('node:buffer');
|
|
11
12
|
require('node:util');
|
|
12
13
|
require('node:url');
|
|
13
|
-
require('net');
|
|
14
|
+
require('node:net');
|
|
15
|
+
require('node:fs');
|
|
16
|
+
require('node:path');
|
|
14
17
|
require('crypto');
|
|
15
18
|
|
|
16
19
|
var setCookie = {exports: {}};
|