You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: API.md
+24-13
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# API documentation
2
2
3
-
The long term goal for LLRT is to become [Winter CG compliant](https://github.com/wintercg/admin/blob/main/proposals.md). Not every API from node will be supported.
3
+
> [!NOTE]
4
+
> The long term goal for LLRT is to become [Winter CG compliant](https://github.com/wintercg/admin/blob/main/proposals.md). Not every API from Node.js will be supported.
4
5
5
6
## buffer
6
7
@@ -16,6 +17,9 @@ Everything else inherited from [Uint8Array](https://developer.mozilla.org/en-US/
16
17
17
18
## child_process
18
19
20
+
> [!WARNING]
21
+
> `spawn` uses native streams that is not 100% compatible with the Node.js Streams API.
@@ -40,10 +44,13 @@ Everything else inherited from [Uint8Array](https://developer.mozilla.org/en-US/
40
44
41
45
Available globally
42
46
43
-
[fetch](https://developer.mozilla.org/en-US/docs/Web/API/fetch)_There are some differences with the [WHATWG standard](https://fetch.spec.whatwg.org). Mainly browser specific behavior is removed:_
44
-
*`keepalive` is always true
45
-
*`body` can only be `string`, `Array`, `ArrayBuffer` or `Uint8Array`
46
-
*`mode`, `credentials`, `referrerPolicy`, `priority`, `cache` is not available/applicable
> There are some differences with the [WHATWG standard](https://fetch.spec.whatwg.org). Mainly browser specific behavior is removed:
51
+
> *`keepalive` is always true
52
+
> *`body` can only be `string`, `Array`, `ArrayBuffer` or `Uint8Array`
53
+
> *`mode`, `credentials`, `referrerPolicy`, `priority`, `cache` is not available/applicable
47
54
48
55
## fs/promises
49
56
@@ -76,7 +83,10 @@ export function decode(value:string):Uint8Array
76
83
77
84
## module
78
85
79
-
[createRequire](https://nodejs.org/api/module.html#modulecreaterequirefilename) _Require is available from esm modules natively. This function is just for compatibility_
> TheseAPIsusesnativestreamsthatisnot100% compatiblewiththeNode.jsStreamsAPI. ServerAPIslike`createSever`provideslimitedfunctionalityusefulfortestingpurposes. Serverlessapplicationstypicallydon't expose servers. Some server options are not supported:
[createServer](https://nodejs.org/api/net.html#netcreateserveroptions-connectionlistener) _This module provides limited functionality useful for testing purposes. Serverless applications typically don't expose servers. Some server options are not supported:_

@@ -28,8 +29,9 @@ Choose `Custom Runtime on Amazon Linux 2023`, upload `llrt-lambda-arm64.zip` or
28
29
29
30
Thats it 🎉
30
31
31
-
**Please note: Even though LLRT supports [ES2020](https://262.ecma-international.org/11.0/) it's is NOT a drop in replacement for Node.js. Consult [Compatibility matrix](#compatibility-matrix) and [API](API.md) for more details.
32
-
All dependencies should be bundled for a `browser` platform and mark included `@aws-sdk` packages as external.**
32
+
> [!IMPORTANT]
33
+
> Even though LLRT supports [ES2020](https://262.ecma-international.org/11.0/) it's is **NOT** a drop in replacement for Node.js. Consult [Compatibility matrix](#compatibility-matrix) and [API](API.md) for more details.
34
+
> All dependencies should be bundled for a `browser` platform and mark included `@aws-sdk` packages as external.
33
35
34
36
## Testing & ensuring compatibility
35
37
@@ -45,7 +47,8 @@ The test runner also has support for filters. Using filters is as simple as addi
45
47
46
48
## Compatibility matrix
47
49
48
-
_LLRT only support a fraction of the Node.js APIs. It is **NOT** a drop in replacement for Node.js, nor will it ever be. Below is a high level overview of partially supported APIs and modules. For more details consult the [API](API.md) documentation_
50
+
> [!NOTE]
51
+
> LLRT only support a fraction of the Node.js APIs. It is **NOT** a drop in replacement for Node.js, nor will it ever be. Below is a high level overview of partially supported APIs and modules. For more details consult the [API](API.md) documentation
@@ -177,7 +180,8 @@ V3 SDK packages not included in the list bellow have to be bundled with your sou
177
180
178
181
Same principle as dependencies applies when using TypeScript. TypeScript must be bundled and transpiled into ES2020 JavaScript.
179
182
180
-
_Note that LLRT will not support running TypeScript without transpilation. This is by design for performance reasons. Transpiling requires CPU and memory that adds latency and cost during execution. This can be avoided if done ahead of time during deployment._
183
+
> [!NOTE]
184
+
> LLRT will not support running TypeScript without transpilation. This is by design for performance reasons. Transpiling requires CPU and memory that adds latency and cost during execution. This can be avoided if done ahead of time during deployment.
0 commit comments