You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just opening this discussion to keep track of possible future improvement, for example when Node 14 is EOL (Apr. 2023) as shown in first list item below:
other package that can use node: protocol are (node:assert, node:fs, node:path, node:stream, node:os, node:util, node:url, ...)
2. remove all usage of require() and replace them with import (or await import()) to be ESM ready
for the ones that are too hard to replace with async imports, we can probably use createRequire
need to review GHE dynamic imports, it might need await import
3. __dirname was also replaced by import.meta.url with ESM but that only works with very latest version of Node >=14.18.3 (which is higher than current requirement) or Node 16, probably better to wait on the next Node major release after Node14 EOL - April 2023
currently implemented as opt-in, it might be better to switch it to be the default in future version keep it as opt-in since some users are using it in CI
13. remove lerna info since I don't think anyone ever used it and it can be replaced by a simple npx envinfo command
14. remove "(new)" label from all options
15. upgrade pnpm and minimatch to v8, delay upgrade since it requires Node >=16
will delay pnpm v8 after our official 2.0 release
16. use fs-extra/esm for ESM imports
17. change all istanbul ignore comments to c8 ignore (see Vitest coverage ignore)
18. add external conventional-commits config and test with/without in dry-run mode
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Planned for Next Major Release
List of upcoming changes
Just opening this discussion to keep track of possible future improvement, for example when Node 14 is EOL (Apr. 2023) as shown in first list item below:
node:
import prefix for Node libs as ESM, ref Node GitHub issue, for example (rollback PR fix(version): Node14, import from "fs" instead of "node:fs", fixes #260 #261 and apply other changes)node:
protocol are (node:assert
,node:fs
,node:path
,node:stream
,node:os
,node:util
,node:url
, ...)require()
and replace them withimport
(orawait import()
) to be ESM readyfor the ones that are too hard to replace with async imports, we can probably use createRequire__dirname
was also replaced byimport.meta.url
with ESM but that only works with very latest version of Node >=14.18.3 (which is higher than current requirement) or Node 16, probably better to wait on the next Nodemajor
release after Node14 EOL - April 2023>= 16.15.0
and npm>= 8.5.0
version
note about npm version required for the--sync-workspace-lock
flag and removenpm shrinkwrap
in update-lockfile-version.ts"module": "commonjs"
with"module": "bundler"
--no-workspace-strict-match
flag frompublish
readme doc"os"
dependency from anypackage.json
since it is now a NodeJS core packagegit-dry-run
andcmd-dry-run
to the simplerdry-run
major
releaseversion
andpublish
commands as optional packages as well, ref issue Make the@lerna-lite/version
and@lerna-lite/publish
dependencies optional #450optional-cmd-common
into 2 new packages (filter-packages
&profiler
)it might be better to switch it to be the default in future versionkeep it as opt-in since some users are using it in CIlerna info
since I don't think anyone ever used it and it can be replaced by a simplenpx envinfo
commandfs-extra/esm
for ESM imports--changelog-version-message-msg
version1
branch before mergingnext
intomain
remove optionaluseNx
fromrun
commandnext
branchReferences
List of associated PRs
node:
imports andfs-extra/esm
import #539--no-workspace-strict-match
option #541--require-scripts
, keep npm scripts lifecycle #542--changelog-version-message
option #543--use-nx
(powered by Nx) option fromrun
command #554--skip-bump-only-release
to avoid empty gh releases #555--use-nx
option torun
command #557Beta Was this translation helpful? Give feedback.
All reactions