entities を 7.x から 8.x へアップグレード
entities 7.0.1 と 8.1.0 の公開 API を、TypeScript の型から自動的に比較したものです。シグネチャの変更は破壊的変更の候補であり、確定ではありません。
概要
| 削除されたインポートパス | 0 |
|---|---|
| 削除されたエクスポート | 9 |
| 変更されたシグネチャ | 7 |
| 削除されたクラス/インターフェースのメンバー | 0 |
| 変更されたクラス/インターフェースのメンバー | 0 |
| 新たに非推奨 | 1 |
| 要件の変更(engines、peer 依存関係) | 1 |
| 新しいエクスポート | 2 |
削除されたエクスポート
| import | export | kind | 変更前 |
|---|---|---|---|
entities | decodeHTML4 | function | (htmlString: string, mode?: DecodingMode | undefined): string |
entities | decodeHTML5 | function | (htmlString: string, mode?: DecodingMode | undefined): string |
entities | encodeHTML4 | function | (input: string): string |
entities | encodeHTML5 | function | (input: string): string |
entities | decodeStrict | function | (input: string, options?: DecodingOptions | EntityLevel | undefined): string |
entities | decodeHTML4Strict | function | (htmlString: string): string |
entities | decodeHTML5Strict | function | (htmlString: string): string |
entities/decode | fromCodePoint | variable | (...codePoints: number[]): string |
entities/decode | decodeCodePoint | function | (codePoint: number): string |
変更されたシグネチャ
| export | 変更前 | 変更後 |
|---|---|---|
entities · escapeText | (data: string): string | (data: string): string |
entities · escapeUTF8 | (data: string): string | (data: string): string |
entities · escapeAttribute | (data: string): string | (data: string): string |
entities/escape · escapeText | (data: string): string | (data: string): string |
entities/escape · escapeUTF8 | (data: string): string | (data: string): string |
entities/escape · getCodePoint | (c: string, index: number): number | (input: string, index: number): number |
entities/escape · escapeAttribute | (data: string): string | (data: string): string |
削除されたクラス/インターフェースのメンバー
検出されませんでした。
変更されたクラス/インターフェースのメンバー
検出されませんでした。
新たに非推奨
| export | @deprecated |
|---|---|
entities/escape · getCodePoint | Use `String.prototype.codePointAt` directly instead; this export will be removed in the next major. |
要件の変更(engines、peer 依存関係)
| 変更前 | 変更後 | |
|---|---|---|
engines.node | >=0.12 | >=20.19.0 |
新しいエクスポート (2)
| import | export | kind |
|---|---|---|
entities/decode | replaceCodePointXML | function |
entities/escape | xmlEncodeRegex | variable |
よくある質問
entities を 7 から 8 にアップグレードする際の破壊的変更は?
entities 7.0.1 と 8.1.0 の間で、Vigia は削除されたエクスポートを 9 件、変更されたシグネチャを 7 件、削除または変更されたクラス/インターフェースのメンバーを 0 件検出しました。
entities 8 で非推奨になったものは?
entities 8.1.0 では 1 件のエクスポートまたはメンバーが新たに非推奨になりました。
エージェント向け
GET https://vigia.coredls.cloud/v1/packages/npm/entities/upgrade?from=7.0.1&to=8.1.0