Skip to content

v0.34.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 03 Mar 07:24
11fd842

0.34.0 (2024-03-03)

⚠ BREAKING CHANGES

  • python: Poetry is now required to be at version 1.2.0 or above. Please update Poetry if needed.
  • nextjs: Minimum Node version is now 16.14.0 to match Next 13's minimum node version.
  • nextjs: Next.js TSConfig module is now esnext by default, to preserve previous behavior, set module to CommonJS.
  • nextjs: Next.js TSConfig moduleResolution is now BUNDLER by default, to preserve previous behavior, set moduleResolution to NODE.
  • nextjs: Next.js TSConfig strict is now set to true by default, to preserve previous behavior, set strict to false.
  • gitlab: current cache definitions will need to be changed into an array or will get a compile time exception.
  • python: Python >=3.8 is now required for projen and consequently for all projects. Upgrade to a supported Python version.
  • json-patch: A failure of JsonPatch.test does not fail synthesis anymore. To preserve previous behavior, pass TestFailureBehavior.FAIL_SYNTHESIS as third parameter to the JsonPatch.test call.
  • json-patch: Calls of JsonPatch.test are now only relevant to the scope of the list of patches passed to ObjectFile.patch. This should not break anything for truthy tests, and should not be relevant for failing tests. However, in case any issues are encountered, the previous behavior can be restored by placing all JsonPatches in a single call of ObjectFile.patch.
  • gitlab: All variables are now Records of strings, as per documentation. If you are currently passing in a number, please convert it to a string.
  • node-package: This may potentially affect some edge cases that were relying on the internal implementation of the dependencies handling. If new dependencies appear/disappear after applying this fix, previous code preSynthesize handler should be inspected for any .addDependency-like calls - those were incorrectly ignored previously and should be removed if actually are not needed.
  • upgrade-dependencies: When upgrading dependencies, installed packages are now checked for peer dependencies and updates will be filtered to satisfy respective version constraints. The previous behavior was to always upgrade to the latest minor version and ignore incompatible peer dependency constraints. To use the previous behavior, set satisfyPeerDependencies: false.
  • upgrade-dependencies: In v0.72.0 a bug was accidently introduced that causes peer dependencies to be always excluded from version upgrades. This releases fixes the issue. To not upgrade peer dependencies, only list desired dependency types in types.

Fixes projen#2874
Fixes projen#2875
Closes projen#1601

  • upgrade-dependencies: the renderUpgradePackagesCommand has been removed from NodePackage. It should never have been used. Instead, configure the appropriate depsUpgradeOptions to control the upgrade task. If you render the upgrade command for a different purpose, you'll have to construct the command yourself according to the appropriate package manager.

Features

Bug Fixes