hapijs / hapijs/boom

[Feature] Add support for the edge runtime

Open
#298 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
2.9k
Forks
191
PR merge metrics
No merged PRs in 30d

Description

#### Support plan

* *is this issue currently blocking your project?* (yes/no): no
* *is this issue affecting a production system?* (yes/no): no

#### Context

* *node version*: n/a
* *module version*: n/a
* *environment* (e.g. node, browser, native): Edge
* *used with* (e.g. hapi application, another framework, standalone, ...): Next.js API Routes
* *any other relevant information*: n/a

#### What problem are you trying to solve?

This library only supports the Node.js runtime. Is there any chance to make it compatible with the edge runtime as well? This would be handy for monorepo projects sharing code between different runtimes. The edge runtime does not support Node.js Buffer module.

If the answer is positive, it would be great to reduce the size of this package drastically. The `@hapi/hoek` dependency is taking ~70% of the size. https://bundlephobia.com/package/@hapi/boom@10.0.0

#### Do you have a new or modified API suggestion to solve the problem?

n/a

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.