ترقية entities من 7.x إلى 8.x
مقارنة الواجهة العامة لـ entities بين 7.0.1 و8.1.0، محسوبة تلقائيًا من أنواع 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؟
عُلِّم 1 من الصادرات أو الأعضاء حديثًا على أنها موقوفة في entities 8.1.0.
للوكلاء
GET https://vigia.coredls.cloud/v1/packages/npm/entities/upgrade?from=7.0.1&to=8.1.0