<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nodejs on agh1973</title><link>https://blog.agh1973.com/tags/nodejs/</link><description>Recent content in Nodejs on agh1973</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 17 Nov 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.agh1973.com/tags/nodejs/index.xml" rel="self" type="application/rss+xml"/><item><title>CDK Integration Tests and the Alpha Package Version Dance</title><link>https://blog.agh1973.com/posts/cdk-integ-tests-alpha-versions/</link><pubDate>Mon, 17 Nov 2025 00:00:00 +0000</pubDate><guid>https://blog.agh1973.com/posts/cdk-integ-tests-alpha-versions/</guid><description>&lt;h2 id="introduction"&gt;
 Introduction
 &lt;a class="heading-link" href="#introduction"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;So&amp;hellip; we have a bunch of small CDK construct libraries that are mostly just a Lambda function.
We added integration tests, like you do these days. And renovate, because we aren&amp;rsquo;t barbarians.
And then I got this error while trying to address stupid nodejs runtime issues:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;TypeError: (0 , core_1.determineLatestNodeRuntimeName) is not a function
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The root cause is simple: CDK&amp;rsquo;s alpha packages (&lt;code&gt;@aws-cdk/integ-tests-alpha&lt;/code&gt;, &lt;code&gt;@aws-cdk/integ-runner&lt;/code&gt;) must exactly match your &lt;code&gt;aws-cdk-lib&lt;/code&gt; version. And when you&amp;rsquo;re using Projen with &lt;code&gt;experimentalIntegRunner: true&lt;/code&gt;, it adds these packages as &lt;code&gt;latest&lt;/code&gt;, which works great until it doesn&amp;rsquo;t.&lt;/p&gt;</description></item><item><title>The NODEJS_LATEST Saga: A CDK Runtime Version Tale (with a Happy Ending)</title><link>https://blog.agh1973.com/posts/nodejs-latest-cdk-runtime-saga/</link><pubDate>Mon, 17 Nov 2025 00:00:00 +0000</pubDate><guid>https://blog.agh1973.com/posts/nodejs-latest-cdk-runtime-saga/</guid><description>&lt;h2 id="introduction"&gt;
 Introduction
 &lt;a class="heading-link" href="#introduction"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;I am of the strong opinion that infrastructure as code should actually, you know, manage your infrastructure. So you don&amp;rsquo;t have to.&lt;/p&gt;
&lt;p&gt;That&amp;rsquo;s kind of the whole point of CDK.&lt;/p&gt;
&lt;p&gt;Which is why it was so frustrating when our security team (reasonably!) demanded we update hundreds of Lambda functions to Node 22, and CDK&amp;rsquo;s &lt;code&gt;NODEJS_LATEST&lt;/code&gt; was stuck on Node 18. And then Node 18 hit end-of-life in April 2025&amp;hellip; and &lt;code&gt;NODEJS_LATEST&lt;/code&gt; was &lt;em&gt;still&lt;/em&gt; pointing at it.&lt;/p&gt;</description></item></channel></rss>