diff --git a/src/content/docs/en/pages/devtools/azion-edge-runtime/compatibility/cells-node.mdx b/src/content/docs/en/pages/devtools/azion-edge-runtime/compatibility/cells-node.mdx index 4a4f6f4e34..c13e41fdd7 100644 --- a/src/content/docs/en/pages/devtools/azion-edge-runtime/compatibility/cells-node.mdx +++ b/src/content/docs/en/pages/devtools/azion-edge-runtime/compatibility/cells-node.mdx @@ -24,8 +24,10 @@ import { API } from "import-origin"; | API | Support Level | Code sample | Comments | |---------|---------------|----------|-------------| | async_hooks | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/azion-samples/tree/dev/samples/node-async-hooks) | Only [AsyncLocalStorage](https://nodejs.org/api/async_context.html#class-asynclocalstorage) and [AsyncResource](https://nodejs.org/api/async_hooks.html#class-asyncresource) are implemented | -| process.env | 馃煝 Supported | `process.env.VAR_NAME`| | -| fs | 馃煛 Partially supported| | [Check the list below](#fs-support) | +| fs | 馃煛 Partially supported| | Only async methods ([check the list below](#fs-support)), others through [polyfills](#node-polyfills) | +| module | 馃煛 Partially supported | | Also supported in local dev through polyfills ([check table below](#node-polyfills)) | +| process.env | 馃煝 Supported | `process.env.VAR_NAME`| Other features supported through polyfills ([check table below](#node-polyfills)) | +| url | 馃煛 Partially supported | | Only global `URL` and `URLSearchParams` | ### FS support @@ -58,45 +60,21 @@ Here's a list of Node APIs supported through polyfills: | API | Support Level | Code sample | |---------|---------------|-------------| | buffer | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/azion-samples/tree/dev/samples/polyfills/buffer) | +| crypto | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/crypto/main.js) | +| events | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/events/main.js) | | fs | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/azion-samples/tree/dev/samples/polyfills/fs) | -| crypto | 馃煛 Partially supported | - | -| dns | 馃煛 Partially supported | - | -| http2 | 馃煛 Partially supported | - | -| module | 馃煛 Partially supported | - | -| navigator | 馃煛 Partially supported | - | -| path_dirname | 馃煛 Partially supported | - | -| performance | 馃煛 Partially supported | - | -| process | 馃煛 Partially supported | - | -| accepts | 馃煛 Partially supported | - | -| child_process | 馃煛 Partially supported | - | -| cluster | 馃煛 Partially supported | - | -| console | 馃煛 Partially supported | - | -| dgram | 馃煛 Partially supported | - | -| events | 馃煛 Partially supported | - | -| http | 馃煛 Partially supported | - | -| https | 馃煛 Partially supported | - | -| inspector | 馃煛 Partially supported | - | -| net | 馃煛 Partially supported | - | -| os | 馃煛 Partially supported | - | -| path | 馃煛 Partially supported | - | -| perf_hooks | 馃煛 Partially supported | - | -| querystring | 馃煛 Partially supported | - | -| readline | 馃煛 Partially supported | - | -| repl | 馃煛 Partially supported | - | -| stream | 馃煛 Partially supported | - | -| _stream_passthrough | 馃煛 Partially supported | - | -| _stream_readable | 馃煛 Partially supported | - | -| _stream_transform | 馃煛 Partially supported | - | -| _stream_writable | 馃煛 Partially supported | - | -| string_decoder | 馃煛 Partially supported | - | -| sys | 馃煛 Partially supported | - | -| timers | 馃煛 Partially supported | - | -| tls | 馃煛 Partially supported | - | -| tty | 馃煛 Partially supported | - | -| url | 馃煛 Partially supported | - | -| util | 馃煛 Partially supported | - | -| vm | 馃煛 Partially supported | - | -| zlib | 馃煛 Partially supported | - | +| http | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/http/main.js) | +| module | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/module/main.js) | +| os | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/os/main.js) | +| path | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/path/main.js) | +| process | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/process/main.js) | +| stream | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/stream/main.js) | +| string_decoder | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/string-decoder/main.js) | +| timers | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/timers/main.js) | +| url | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/url/main.js) | +| util | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/util/main.js) | +| vm | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/vm/main.js) | +| zlib | 馃煛 Partially supported | [Access code sample](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/zlib/main.js) | :::note You can check the list of APIs resolved through polyfills in [Azion Bundler's repository](https://github.com/aziontech/bundler/blob/main/lib/build/bundlers/polyfills/polyfills-manager.js), as well as contribute with the project. diff --git a/src/content/docs/pt-br/pages/devtools/azion-edge-runtime/compatibilidade/node.mdx b/src/content/docs/pt-br/pages/devtools/azion-edge-runtime/compatibilidade/node.mdx index 41883e2248..1fa69e64ca 100644 --- a/src/content/docs/pt-br/pages/devtools/azion-edge-runtime/compatibilidade/node.mdx +++ b/src/content/docs/pt-br/pages/devtools/azion-edge-runtime/compatibilidade/node.mdx @@ -26,8 +26,10 @@ import { API } from "import-origin"; | API | N铆vel de suporte | Exemplo de c贸digo | Coment谩rios | |---------|---------------|----------|-------------| | async_hooks | 馃煛 Parcialmente suportada | [Acessar o exemplo de c贸digo](https://github.com/aziontech/azion-samples/tree/dev/samples/node-async-hooks) | Apenas [AsyncLocalStorage](https://nodejs.org/api/async_context.html#class-asynclocalstorage) e [AsyncResource](https://nodejs.org/api/async_hooks.html#class-asyncresource) est茫o implementadas. | -| process.env | 馃煝 Suportada | `process.env.NOME_VAR`| | -| fs | 馃煛 Parcialmente suportado | | [Verifique a lista abaixo](#suporte-fs) | +| fs | 馃煛 Parcialmente suportada | | Apenas m茅todos ass铆ncronos ([confira a lista abaixo](#fs-support)), outros atrav茅s de [polyfills](#node-polyfills) | +| module | 馃煛 Parcialmente suportada | | | +| process.env | 馃煝 Suportada | `process.env.VAR_NAME`| Outros recursos suportados atrav茅s de polyfills ([confira a tabela abaixo](#node-polyfills)) | +| url | 馃煛 Parcialmente suportada | | Apenas os globais `URL` e `URLSearchParams` | ### Suporte de FS @@ -60,45 +62,21 @@ Aqui est谩 a lista de APIs do Node suportadas atrav茅s de polyfills: | API | N铆vel de suporte | Exemplo de c贸digo | |---------|---------------|----------| | buffer | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/azion-samples/tree/dev/samples/polyfills/buffer) | -| fs | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/azion-samples/tree/dev/samples/polyfills/fs) | -| crypto | 馃煛 Parcialmente suportada | - | -| dns | 馃煛 Parcialmente suportada | - | -| http2 | 馃煛 Parcialmente suportada | - | -| module | 馃煛 Parcialmente suportada | - | -| navigator | 馃煛 Parcialmente suportada | - | -| path_dirname | 馃煛 Parcialmente suportada | - | -| performance | 馃煛 Parcialmente suportada | - | -| process | 馃煛 Parcialmente suportada | - | -| accepts | 馃煛 Parcialmente suportada | - | -| child_process | 馃煛 Parcialmente suportada | - | -| cluster | 馃煛 Parcialmente suportada | - | -| console | 馃煛 Parcialmente suportada | - | -| dgram | 馃煛 Parcialmente suportada | - | -| events | 馃煛 Parcialmente suportada | - | -| http | 馃煛 Parcialmente suportada | - | -| https | 馃煛 Parcialmente suportada | - | -| inspector | 馃煛 Parcialmente suportada | - | -| net | 馃煛 Parcialmente suportada | - | -| os | 馃煛 Parcialmente suportada | - | -| path | 馃煛 Parcialmente suportada | - | -| perf_hooks | 馃煛 Parcialmente suportada | - | -| querystring | 馃煛 Parcialmente suportada | - | -| readline | 馃煛 Parcialmente suportada | - | -| repl | 馃煛 Parcialmente suportada | - | -| stream | 馃煛 Parcialmente suportada | - | -| _stream_passthrough | 馃煛 Parcialmente suportada | - | -| _stream_readable | 馃煛 Parcialmente suportada | - | -| _stream_transform | 馃煛 Parcialmente suportada | - | -| _stream_writable | 馃煛 Parcialmente suportada | - | -| string_decoder | 馃煛 Parcialmente suportada | - | -| sys | 馃煛 Parcialmente suportada | - | -| timers | 馃煛 Parcialmente suportada | - | -| tls | 馃煛 Parcialmente suportada | - | -| tty | 馃煛 Parcialmente suportada | - | -| url | 馃煛 Parcialmente suportada | - | -| util | 馃煛 Parcialmente suportada | - | -| vm | 馃煛 Parcialmente suportada | - | -| zlib | 馃煛 Parcialmente suportada | - | +| crypto | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/blob/main/examples/runtime-apis/nodejs/crypto/main.js) | +| events | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/events/main.js) | +| fs | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/azion-samples/tree/dev/samples/polyfills/fs/main.js) | +| http | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/http/main.js) | +| module | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/module/main.js) | +| os | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/os/main.js) | +| path | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/path/main.js) | +| process | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/process/main.js) | +| stream | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/stream/main.js) | +| string_decoder | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/string-decoder/main.js) | +| timers | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/timers/main.js) | +| url | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/url/main.js) | +| util | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/util/main.js) | +| vm | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/vm/main.js) | +| zlib | 馃煛 Parcialmente suportada | [Acessar exemplo de c贸digo](https://github.com/aziontech/bundler-examples/tree/main/examples/runtime-apis/nodejs/zlib/main.js) | :::note Voc锚 pode verificar a lista de APIs resolvidas atrav茅s de polyfills no [reposit贸rio do Azion Bundler](https://github.com/aziontech/bundler/blob/main/lib/build/bundlers/polyfills/polyfills-manager.js) e contribuir com o projeto.