ajv-validator / ajv-validator/ajv

consider removing require-from-string dependency

オープン
#1,793 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
14.8k
フォーク
1k
PR マージ指標
30日以内にマージされた PR はありません

説明

**What version of Ajv you are you using?**

`master`

**What problem do you want to solve?**

Reducing the number of runtime dependencies.

**What do you think is the correct solution to problem?**

It seems that `require-from-string` is mainly used to provide the `getStandalone` helper method: https://github.com/ajv-validator/ajv/blob/master/lib/standalone/instance.ts#L24.

Since the reference documentation already show an example of how to use `require-from-string` from the ajv client code to perform the same operation https://ajv.js.org/standalone.html#usage-from-code, I wonder if you've considered removing the helper w/ the dependency altogether.

**Will you be able to implement it?**

Of course!

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。