Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: allow ts 5 as a peer dep #226

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

wdoconnell
Copy link

Part of #203, #225

Using the plugin with Typescript 5.x.x was previously blocked by an if block that required that the TS major version be >= 4 and that the minor version be >=9 (the only 5.x.x Typescript versions have minor versions that are between 0 and 2). See #204. That fixed a portion of the issue, but the plugin is still not usable with Typescript 5.x.x due to a peer dependency restriction limiting it to use with Typescript 4.x.x.

This adds TS 5.x.x as a potential peerdep.

package.json Outdated
@@ -26,7 +26,7 @@
},
"peerDependencies": {
"google-protobuf": "^3.13.0",
"typescript": "4.x.x"
"typescript": "4.x.x || 5.x.x"
Copy link

@drbild drbild Sep 15, 2023

Choose a reason for hiding this comment

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

I'd suggest >= 4.9.x instead, to exactly match the runtime check. It requires at least 4.9 and would allow a future 6.x.

Copy link
Author

Choose a reason for hiding this comment

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

@drbild Good point - thanks. Updated.

@thesayyn thesayyn merged commit 37feb71 into thesayyn:main Sep 15, 2023
12 checks passed
@wdoconnell
Copy link
Author

Hi @thesayyn - Would it be possible to have an npm release for this to fix compatibility with TS >= 5?

@wdoconnell
Copy link
Author

@thesayyn Thank you! 😄

kodiakhq bot referenced this pull request in cloudquery/plugin-pb-javascript Oct 1, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [protoc-gen-ts](https://togithub.com/thesayyn/protoc-gen-ts) | devDependencies | patch | [`0.8.6` -> `0.8.7`](https://renovatebot.com/diffs/npm/protoc-gen-ts/0.8.6/0.8.7) |

---

### Release Notes

<details>
<summary>thesayyn/protoc-gen-ts (protoc-gen-ts)</summary>

### [`v0.8.7`](https://togithub.com/thesayyn/protoc-gen-ts/releases/tag/0.8.7)

[Compare Source](https://togithub.com/thesayyn/protoc-gen-ts/compare/0.8.6...0.8.7)

#### What's Changed

-   Fixed issue [#&#8203;178](https://togithub.com/thesayyn/protoc-gen-ts/issues/178) by [@&#8203;Aleksei2507](https://togithub.com/Aleksei2507) in [https://github.com/thesayyn/protoc-gen-ts/pull/208](https://togithub.com/thesayyn/protoc-gen-ts/pull/208)
-   Fixes issue [#&#8203;203](https://togithub.com/thesayyn/protoc-gen-ts/issues/203) by [@&#8203;danias](https://togithub.com/danias) in [https://github.com/thesayyn/protoc-gen-ts/pull/204](https://togithub.com/thesayyn/protoc-gen-ts/pull/204)
-   Using 0 instead of process.stdin.fd. by [@&#8203;YutaUra](https://togithub.com/YutaUra) in [https://github.com/thesayyn/protoc-gen-ts/pull/223](https://togithub.com/thesayyn/protoc-gen-ts/pull/223)
-   chore: allow ts 5 as a peer dep by [@&#8203;wdoconnell](https://togithub.com/wdoconnell) in [https://github.com/thesayyn/protoc-gen-ts/pull/226](https://togithub.com/thesayyn/protoc-gen-ts/pull/226)
-   refactor: deprecate index.bzl by [@&#8203;thesayyn](https://togithub.com/thesayyn) in [https://github.com/thesayyn/protoc-gen-ts/pull/229](https://togithub.com/thesayyn/protoc-gen-ts/pull/229)

#### New Contributors

-   [@&#8203;Aleksei2507](https://togithub.com/Aleksei2507) made their first contribution in [https://github.com/thesayyn/protoc-gen-ts/pull/208](https://togithub.com/thesayyn/protoc-gen-ts/pull/208)
-   [@&#8203;danias](https://togithub.com/danias) made their first contribution in [https://github.com/thesayyn/protoc-gen-ts/pull/204](https://togithub.com/thesayyn/protoc-gen-ts/pull/204)
-   [@&#8203;YutaUra](https://togithub.com/YutaUra) made their first contribution in [https://github.com/thesayyn/protoc-gen-ts/pull/223](https://togithub.com/thesayyn/protoc-gen-ts/pull/223)
-   [@&#8203;wdoconnell](https://togithub.com/wdoconnell) made their first contribution in [https://github.com/thesayyn/protoc-gen-ts/pull/226](https://togithub.com/thesayyn/protoc-gen-ts/pull/226)

**Full Changelog**: thesayyn/protoc-gen-ts@0.8.6...0.8.7

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDkuNCIsInVwZGF0ZWRJblZlciI6IjM2LjEwOS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
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.

3 participants