Skip to content

Conversation

andrewjschuang
Copy link
Collaborator

@andrewjschuang andrewjschuang commented Aug 7, 2025

WHY

The Linear API key components were getting this error:

SyntaxError
The requested module '@linear/sdk' does not provide an export named 'LinearClient'

Summary by CodeRabbit

  • Chores
    • Updated version numbers for several actions and sources to reflect the latest release.
    • Increased the overall package version.
    • Updated an internal dependency to a specific version.

Copy link

vercel bot commented Aug 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored (Inspect) Aug 7, 2025 5:12pm
pipedream-docs ⬜️ Ignored (Inspect) Aug 7, 2025 5:12pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Aug 7, 2025 5:12pm

Copy link
Contributor

coderabbitai bot commented Aug 7, 2025

Walkthrough

This update consists entirely of version number increments across multiple action and source components within the linear_app directory, along with a minor change to the import path for LinearClient and a package version bump in package.json. No logic, functionality, or structural code was altered.

Changes

Cohort / File(s) Change Summary
Action Version Bumps
components/linear_app/actions/create-issue/create-issue.mjs,
components/linear_app/actions/get-issue/get-issue.mjs,
components/linear_app/actions/get-teams/get-teams.mjs,
components/linear_app/actions/search-issues/search-issues.mjs,
components/linear_app/actions/update-issue/update-issue.mjs
Incremented version property in each action's exported object.
Source Version Bumps
components/linear_app/sources/comment-created-instant/comment-created-instant.mjs,
components/linear_app/sources/issue-created-instant/issue-created-instant.mjs,
components/linear_app/sources/issue-updated-instant/issue-updated-instant.mjs,
components/linear_app/sources/new-issue-status-updated/new-issue-status-updated.mjs,
components/linear_app/sources/new-projectupdate-created/new-projectupdate-created.mjs,
components/linear_app/sources/project-updated-instant/project-updated-instant.mjs
Incremented version property in each source's exported object.
SDK Import Path Update
components/linear_app/linear_app.app.mjs
Changed LinearClient import path to specify @linear/sdk@13.0.0.
Package Version Bump
components/linear_app/package.json
Updated package version from 0.7.3 to 0.7.4.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A hop and a skip, the versions all leap,
With numbers ascending, the changes are deep.
No code rearranged, just digits anew—
The Linear bunny is proud of this view!
🐇✨ Versioned and tidy, we’re ready to go,
Onward and upward, release with a “whoa!”

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch linear-pin-sdk-version

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 00f9529 and 8d43907.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (13)
  • components/linear_app/actions/create-issue/create-issue.mjs (1 hunks)
  • components/linear_app/actions/get-issue/get-issue.mjs (1 hunks)
  • components/linear_app/actions/get-teams/get-teams.mjs (1 hunks)
  • components/linear_app/actions/search-issues/search-issues.mjs (1 hunks)
  • components/linear_app/actions/update-issue/update-issue.mjs (1 hunks)
  • components/linear_app/linear_app.app.mjs (1 hunks)
  • components/linear_app/package.json (1 hunks)
  • components/linear_app/sources/comment-created-instant/comment-created-instant.mjs (1 hunks)
  • components/linear_app/sources/issue-created-instant/issue-created-instant.mjs (1 hunks)
  • components/linear_app/sources/issue-updated-instant/issue-updated-instant.mjs (1 hunks)
  • components/linear_app/sources/new-issue-status-updated/new-issue-status-updated.mjs (1 hunks)
  • components/linear_app/sources/new-projectupdate-created/new-projectupdate-created.mjs (1 hunks)
  • components/linear_app/sources/project-updated-instant/project-updated-instant.mjs (1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📚 Learning: 2024-12-12T19:23:09.039Z
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14935
File: components/sailpoint/package.json:15-18
Timestamp: 2024-12-12T19:23:09.039Z
Learning: When developing Pipedream components, do not add built-in Node.js modules like `fs` to `package.json` dependencies, as they are native modules provided by the Node.js runtime.

Applied to files:

  • components/linear_app/package.json
📚 Learning: 2025-01-23T03:55:15.166Z
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#15376
File: components/monday/sources/name-updated/name-updated.mjs:6-6
Timestamp: 2025-01-23T03:55:15.166Z
Learning: Source names in Monday.com components don't need to start with "New" if they emit events for updated items (e.g., "Name Updated", "Column Value Updated") rather than new items. This follows the component guidelines exception where the "New" prefix is only required when emits are limited to new items.

Applied to files:

  • components/linear_app/sources/project-updated-instant/project-updated-instant.mjs
  • components/linear_app/sources/new-projectupdate-created/new-projectupdate-created.mjs
📚 Learning: 2024-10-30T15:24:39.294Z
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In `components/gainsight_px/actions/create-account/create-account.mjs`, the action name should be "Create Account" instead of "Create Memory".

Applied to files:

  • components/linear_app/actions/create-issue/create-issue.mjs
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Lint Code Base
  • GitHub Check: pnpm publish
🔇 Additional comments (12)
components/linear_app/package.json (1)

3-3: Patch version bump looks good – double-check SDK pinning consistency

The project version increment to 0.7.4 is fine.
However, the code now imports @linear/sdk@13.0.0 directly (see linear_app.app.mjs Line 1) while the dependency spec here is "@linear/sdk": "^13.0.0". If caret-range upgrades pull in 13.x.y > 0, the runtime will still resolve @linear/sdk, not @linear/sdk@13.x.y, and the two specifiers will be treated as different packages. This can yield duplicate copies of the SDK or a hard-to-debug “module not found” error.

‣ Either:

  1. Revert the code import to @linear/sdk, or
  2. Pin the dependency to the exact version 13.0.0 so both specifiers resolve identically.

Please verify which approach is required in the Pipedream runtime.

components/linear_app/actions/update-issue/update-issue.mjs (1)

8-8: Version bump acknowledged

Patch version 0.1.11 recorded — no logic changes. 👍

components/linear_app/actions/search-issues/search-issues.mjs (1)

10-10: Version bump acknowledged

Patch version 0.2.11 recorded — no logic changes. 👍

components/linear_app/actions/create-issue/create-issue.mjs (1)

8-8: Version bump acknowledged

Patch version 0.4.11 recorded — no logic changes. 👍

components/linear_app/actions/get-teams/get-teams.mjs (1)

8-8: Patch-level version bump looks good

No functional code changed—only the metadata.

components/linear_app/actions/get-issue/get-issue.mjs (1)

7-7: Version increment acknowledged

Patch release is consistent with the rest of the Linear actions.

components/linear_app/sources/project-updated-instant/project-updated-instant.mjs (1)

11-11: Source version bumped—LGTM

No logic touched; change aligns with coordinated release.

components/linear_app/sources/new-projectupdate-created/new-projectupdate-created.mjs (1)

11-11: Minor version bump verified

Metadata only; nothing else to review.

components/linear_app/sources/new-issue-status-updated/new-issue-status-updated.mjs (1)

11-11: Patch version update accepted

Consistent with other source updates; no further action required.

components/linear_app/sources/issue-created-instant/issue-created-instant.mjs (1)

10-10: Version bump looks good

Patch-level increment to 0.3.13 is consistent with the rest of the Linear sources/actions in this PR. No functional impact detected.

components/linear_app/sources/comment-created-instant/comment-created-instant.mjs (1)

10-10: Version updated correctly

Incrementing to 0.1.13 keeps the component in sync with the overall package version bump; nothing else changed.

components/linear_app/sources/issue-updated-instant/issue-updated-instant.mjs (1)

10-10: Patch version increment approved

version field moved to 0.3.13, matching the coordinated release set. No further comments.

@@ -1,4 +1,4 @@
import { LinearClient } from "@linear/sdk";
import { LinearClient } from "@linear/sdk@13.0.0";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

@linear/sdk@13.0.0 import is very likely invalid in Node/Pipedream

Bare Node’s module resolver (and most bundlers) treat the entire string @linear/sdk@13.0.0 as the package name, so it will look for a folder literally named node_modules/@linear/sdk@13.0.0, which is not installed. This will throw at load time.

Unless the Pipedream runtime provides custom “package@version” resolution (not documented), please revert to the normal import and rely on package.json to lock the version:

-import { LinearClient } from "@linear/sdk@13.0.0";
+import { LinearClient } from "@linear/sdk";

If the goal is hard-pinning, pin the dependency itself ("@linear/sdk": "13.0.0") instead of altering the import specifier.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import { LinearClient } from "@linear/sdk@13.0.0";
import { LinearClient } from "@linear/sdk";
🤖 Prompt for AI Agents
In components/linear_app/linear_app.app.mjs at line 1, the import statement uses
an invalid specifier '@linear/sdk@13.0.0' which Node and bundlers treat as a
single package name and will fail to resolve. Change the import to just
'@linear/sdk' without the version suffix, and ensure the version is pinned in
package.json dependencies instead.

@andrewjschuang andrewjschuang merged commit 3bda4ed into master Aug 7, 2025
11 checks passed
@andrewjschuang andrewjschuang deleted the linear-pin-sdk-version branch August 7, 2025 17:34
@ttrushin
Copy link

ttrushin commented Aug 7, 2025

@andrewjschuang
This just caused all Node.JS code actions to start failing when trying to deploy or run...
Can someone please address this right away?

Heads up that Linear's SDK is WAY ahead of the version you pinned. Try using something solid and stable like the recent version: ^44.1.0

Screenshot 2025-08-07 at 13 44 55

@andrewjschuang
Copy link
Collaborator Author

This was supposed to be a hot fix for another issue. Guess it's better to revert first and then address in a separate place. I'll do this right now, apologize for the inconvenience

@ttrushin
Copy link

ttrushin commented Aug 7, 2025

This was supposed to be a hot fix for another issue. Guess it's better to revert first and then address in a separate place. I'll do this right now, apologize for the inconvenience

Thanks @andrewjschuang! We saw that other issue occasionally too. If you consider pinning to ^44.1.0 (which is recent and has been extremely stable for us), I think both issues would be solved.

@andrewjschuang
Copy link
Collaborator Author

I wonder if that will work though, I think it doesn't support that syntax when you import the @pipedream/linear package. I realized reverting won't work because it issues another deployment, so I'll just have to fix it and use the latest linear version without pinning it

@andrewjschuang
Copy link
Collaborator Author

Blocked on linear/linear#830. Having issues publishing the component.

@andrewjschuang
Copy link
Collaborator Author

@ttrushin I republished the Linear components, I had to use the latest version because of the pinning issues. Gladly the Linear team fixed it very quickly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants