Feature: Packaging updates#39
Conversation
|
@GregOnNet want to test things out with me? There's a pre-release v3.0.0 being built from this branch We can use it in all the environments mentioned above. |
|
Sure thing. |
|
Hey @seangwright , I cannot use version 3, yet (see image below). It seems the NestJS had no plans to go for ESM... at least last year Environment
Steps to reproduceIf you like... I pushed a branch of my app with the erroring setup: https://github.com/entwicklungszeit/papierkram-devkit/pull/3/files#diff-b1c724f5160fdda14108ce318e3db1ee732602cf66e15917e84df8f14e90d9c6R9 |
|
Huh. I thought I saw esm was finally usable in a recent Nestjs release, but maybe I imagined it! I'll revert the switch to esm-only but keep some of the other build improvements and create a new pre-release package. --- edit It appears an experimental feature in node v22.4.0 supports esm via cjs but that seems like a lot of ask from nestjs users. |
|
@GregOnNet i reverted the cjs support removal. https://www.npmjs.com/package/typescript-functional-extensions/v/3.0.0-prerelease.25-1 |
|
Thanks,
Seems combine has been removed by accident. |
|
Installed version: After starting NestJS, I receive a runtime-error: Installed
|
|
I pushed the current version containing the error to entwicklungszeit/papierkram-devkit#3 Steps to reproduce
|
@GregOnNet something happened with your remote branches that were merged in with both of these PRs They include most of the same commits, but #35 includes 1 additional commit - f7f9e12. That additional commit overwrote the changes you made to add This is why it's missing from the library now. |
these methods were removed from the library accidentally by a rename see: #39 (comment)
|
@GregOnNet I re-added the Also, I tested the latest version of the package using a vanilla NextJs app using this method https://docs.nestjs.com/#alternatives and it worked correctly. I'm ready to merge this in if everything looks good to you. |
|
Hey @seangwright, everything works in my example project. LGTM |


This PR removes the old commonjs bundling added for #3 since NestJs no longer requires commonjs packages.
It also updates npm deps and the GitHub actions used to build and deploy this library.
This is a major breaking change so we'll release a new v3.0.0 once this branch is merged in.
We'll want to test a pre-release package of this new bundling before full release.