Skip to content

Conversation

khendrikse
Copy link
Contributor

🎉 Thanks for submitting a pull request! 🎉

Summary

This removes support for node 18.x and 19.x


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

@khendrikse khendrikse requested a review from a team as a code owner June 5, 2025 11:54
Copy link

github-actions bot commented Jun 5, 2025

📊 Benchmark results

Comparing with 8bb3fd2

  • Dependency count: 1,148 (no change)
  • Package size: 271 MB (no change)
  • Number of ts-expect-error directives: 397 (no change)
@khendrikse khendrikse requested a review from a team as a code owner June 5, 2025 12:04
@khendrikse khendrikse requested a review from eduardoboucas June 5, 2025 12:22
@khendrikse khendrikse requested a review from eduardoboucas June 5, 2025 12:43
})

test.runIf(gte(version, '18.14.0'))('should support functions with streaming responses', async (t) => {
test.runIf(gte(version, '20.12.2'))('should support functions with streaming responses', async (t) => {
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need this anymore because now the lowest version we test with has support for Request/Response, which is what this condition was about.

Suggested change
test.runIf(gte(version, '20.12.2'))('should support functions with streaming responses', async (t) => {
test('should support functions with streaming responses', async (t) => {
}

describe.runIf(gte(version, '18.13.0')).concurrent('v2 api', async () => {
describe.runIf(gte(version, '20.12.2')).concurrent('v2 api', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need this anymore because now the lowest version we test with has support for Request/Response, which is what this condition was about.

Suggested change
describe.runIf(gte(version, '20.12.2')).concurrent('v2 api', async () => {
describe.concurrent('v2 api', async () => {

const TYPESCRIPT_EXTENSIONS = new Set(['.cts', '.mts', '.ts'])
const V2_MIN_NODE_VERSION = '18.14.0'
const V2_MIN_NODE_VERSION = '20.12.2'
Copy link
Member

Choose a reason for hiding this comment

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

This is technically not needed, since the minimum version needed to have V2 functions (with Request/Response) is still the same. It just happens that this version is now lower than the minimum version supported by the CLI.

This means that this constant and the isSupported() method that uses it can go away. But we can do that in a follow-up.

@khendrikse khendrikse merged commit e230a54 into main Jun 5, 2025
47 checks passed
@khendrikse khendrikse deleted the feat/drop-node-18-and-19 branch June 5, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants