Skillpedia
المواقع والواجهات (frontend)29k · #9814

migrate-v8-to-v9

ما الذي تفعله

توجّه هذه المهارة ترقية مشروع Lit من TanStack Table الإصدار 8 إلى الإصدار 9. وهي مخصصة للمطورين الذين يحتاجون إلى قائمة تحقق لكل جزء متغير من الكود.

متى تستخدمها

  • ✓عندما لا يزال تطبيق Lit يستخدم وحدة تحكم الجدول من الإصدار 8 ويحتاج إلى تحديث.
  • ✓عندما تجهّز مشروع Lit لـ TanStack Table الإصدار 9 وإصدار Lit المطلوب له.
  • ✓عندما يتعطل عرض الجدول أو حالته بعد الترقية إلى الإصدار 9.

رابط المهارة

https://github.com/TanStack/table/blob/main/packages/lit-table/skills/migrate-v8-to-v9/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/TanStack/table/blob/main/packages/lit-table/skills/migrate-v8-to-v9/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل تستطيع مساعدتي في ترقية كود جدول Lit من TanStack Table الإصدار 8 إلى الإصدار 9؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تقدم المهارة قائمة تحقق بالتغييرات، مثل الانتقال إلى استدعاء الجدول الأحدث أثناء العرض، وتشير إلى ملاحظات مفصلة لكل تغيير.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Load intent load @tanstack/table-core#migrate-v8-to-v9 first and audit its entire shared checklist. It owns feature registration, row-model slots, state/reset changes, prototype methods, logical pinning, sizing/resizing, sorting, selection, helpers, and TypeScript mappings.

Framework prerequisites

Lit 3.1.3 or newer within v3 (lit ^3.1.3) and @lit/context ^1.1.0 are required.

Lit migration checklist

  • Construct one TableController<typeof features, TData>(this) as a stable host field.
  • Replace the v8 controller.table property/options thunk with controller.table(options, selector?) during render.
  • Read selected table.state for rendering; use atom snapshots in handlers or stable table.subscribe selectors for template regions.
  • Feed resolved controlled callbacks back through reactive Lit properties, or use stable external atoms.
  • Switch render helpers to FlexRender({ cell }), FlexRender({ header }), or FlexRender({ footer }) and preserve instance-method receivers.
  • If app conventions repeat, construct a host-bound useAppTable once and call its .table() during render.

Apply the affected mappings

Read adapter-migration when changing construction, rendering, state, or app hooks. Read the relevant core migration references for each affected shared API; this adapter checklist does not replace that audit.

For complete v9 construction examples, read getting-started. For reactive state repairs, read table-state.

Final checks

  • All shared core migration checks and affected mappings have been applied.
  • The framework checklist above passes with the current adapter declarations.
  • Model inputs remain stable and state changes reach their reactive owner.

API discovery

Inspect node_modules/@tanstack/lit-table/dist/index.d.ts, then TableController.d.ts, flexRender.d.ts, or the relevant exported declaration. Core feature APIs are in node_modules/@tanstack/table-core/dist/features/.

الأسئلة الشائعة

ما إصدار Lit المطلوب؟

تذكر المهارة الإصدار 3.1.3 من Lit أو أحدث ضمن الإصدار 3، إضافةً إلى @lit/context الإصدار 1.1.0 أو أحدث.

هل تحل محل دليل الترحيل الأساسي؟

لا. تغطي التغييرات الخاصة بـ Lit، وتشير إلى الدليل الأساسي للتغييرات المشتركة في الواجهة البرمجية.

ماذا لو كانت دوال العرض قديمة؟

تقول المهارة إن عليك تحويلها إلى FlexRender مع cell أو header أو footer.

التفاصيل

الوصف الأصلي من المؤلف

Migrate lit Table v8 to v9. Audit framework construction, rendering, state, and app hooks, with shared API changes in the core migration skill.

repo: TanStack/table

الشعبية

نجوم GitHub
29k
الترتيب
#9814
الترخيص
MIT
آخر تحديث
21‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة