Skip to content

docs: convert remaining code examples from CommonJS to ESM #2923

Description

@zimeg

Summary

The quickstart guides and README were updated to use ESM imports in #2923. The remaining docs still use require() syntax and should be converted to import for consistency.

Files to update

English:

  • docs/english/concepts/authenticating-oauth.md
  • docs/english/concepts/custom-routes.md
  • docs/english/concepts/deferring-initialization.md
  • docs/english/concepts/error-handling.md
  • docs/english/concepts/logging.md
  • docs/english/concepts/message-listening.md
  • docs/english/concepts/receiver.md
  • docs/english/concepts/socket-mode.md
  • docs/english/concepts/token-rotation.md
  • docs/english/deployments/aws-lambda.md
  • docs/english/tutorials/code-assistant.md

Japanese:

  • docs/japanese/concepts/authenticating-oauth.md
  • docs/japanese/concepts/custom-routes.md
  • docs/japanese/concepts/deferring-initialization.md
  • docs/japanese/concepts/error-handling.md
  • docs/japanese/concepts/logging.md
  • docs/japanese/concepts/message-listening.md
  • docs/japanese/concepts/socket-mode.md
  • docs/japanese/deployments/aws-lambda.md

Out of scope

  • docs/english/legacy/steps-from-apps.md and docs/japanese/legacy/steps-from-apps.md — deprecated, no update needed.

Notes

  • Most files are a straightforward requireimport swap.
  • Lambda deployment docs also use module.exports which should become export const handler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-triage-skipPrevent this issue from being closed due to lack of activitydocsM-T: Documentation work onlyenhancementM-T: A feature request for new functionality

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions