linear-upgrade-migration
Upgrade Linear SDK versions and migrate breaking changes. Use when updating to a new SDK version, handling deprecations, or migrating between major Linear API versions. Trigger with phrases like "upgrade linear SDK", "linear SDK migration", "update linear", "linear breaking changes", "linear deprecation".
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- linear-upgrade-migration
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Upgrade Linear SDK versions and migrate breaking changes. Use when updating to a new SDK version, handling deprecations, or migrating between major Linear API versions. Trigger with phrases like "upgrade linear SDK", "linear SDK migration", "update linear", "linear breaking changes", "linear deprecation".
- allowed-tools
- Read, Write, Edit, Bash(npm:*), Bash(npx:*), Grep
- compatible-with
- claude-code, codex, openclaw
02 资源文件 1
- 参考文档references/implementation.md2.5 KB
03 SKILL.md 正文
Linear Upgrade Migration
Contents
Overview
Safely upgrade Linear SDK versions and handle breaking changes with compatibility layers and gradual rollout.
Prerequisites
- Existing Linear integration
- Version control (Git) configured
- Test suite for Linear operations
Instructions
Step 1: Check Current and Latest Versions
set -euo pipefail
npm list @linear/sdk # Current version
npm view @linear/sdk version # Latest available
Step 2: Review Breaking Changes
Check GitHub releases and changelog for migration guides between your current and target versions.
Step 3: Create Upgrade Branch
set -euo pipefail
git checkout -b upgrade/linear-sdk-vX.Y.Z
npm install @linear/sdk@latest
npx tsc --noEmit # Check for type errors
Step 4: Apply Migration Patterns
Common changes between versions: renamed fields, changed return types (direct to paginated), new required parameters, and removed methods.
Step 5: Create Compatibility Layer
Wrap breaking changes in a compat client to normalize behavior across versions.
Step 6: Test and Deploy
set -euo pipefail
npm test && npx tsc --noEmit && npm run lint
npm run deploy:staging && npm run test:integration
Step 7: Gradual Rollout
Use feature flags to toggle between old and new SDK behavior in production.
See detailed implementation for all migration patterns, compatibility layer code, and version-specific changes.
Version Compatibility Matrix
| SDK Version | Node.js | TypeScript | Key Changes |
|---|---|---|---|
| 1.x | 14+ | 4.5+ | Initial release |
| 2.x | 16+ | 4.7+ | ESM support |
| 3.x | 18+ | 5.0+ | Strict types |
Output
- SDK upgraded to target version
- Breaking changes resolved
- Compatibility layer in place
- Tests passing on new version
Error Handling
| Error | Cause | Solution |
|---|---|---|
Property does not exist |
Renamed field | Check migration guide for new name |
Type not assignable |
Changed type | Update type annotations |
Module not found |
ESM/CJS mismatch | Update import syntax |
Runtime method missing |
Version mismatch | Verify installed SDK version |
Examples
Basic usage: Apply linear upgrade migration to a standard project setup with default configuration options.
Advanced scenario: Customize linear upgrade migration for production environments with multiple constraints and team-specific requirements.
Resources
Next Steps
Set up CI/CD integration with linear-ci-integration.
04 同仓库更多 Skills
zustand-store-ts
Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.
zustand-store-creator
Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.
zero-trust-config-helper
Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.
zapier-integration-helper
Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.
zai-cli
Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.
yt-research
Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.