Skip to content

v0.72.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 15:44
· 1108 commits to refs/heads/main since this release
7a3883a

0.72.0 (2023-11-06)

⚠ BREAKING CHANGES

  • 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

  • cli: pass through --help flag for tasks that receive args (#3046) (7655012)
  • cli: respect git init.defaultBranch (#2917) (a5151c5)
  • construct tree not used internally (#3061) (b9c68ea), closes #3056
  • deps: upgrade bundled dependencies (#3051) (147050c)
  • deps: upgrade bundled dependencies (#3083) (0171e78)
  • file: incorrect projen command in markers (#2859) (7ce8ecd)
  • github: RUN_URL in workflow created PR does not use GitHub enterprise URL (#2767) (fd1bdf3)
  • github: pull-request-lint (#2785) (b24d81d)
  • github: typo in pull-request-lint action (#2799) (65b957b)
  • gitlab: add uppercase support for idTokens (#2922) (f867995)
  • javascript: Empty pnpm object in subprojects (#3072) (9dd309c), closes #3071
  • jsii: jsii-docgen uses incompatible version of jsii-rosetta (#2774) (3d548be)
  • new: projen new --from fails with "Unable to resolve package name from spec" error with "save=false" in .npmrc (#2844) (eda3c14), closes #2837
  • node-package: components cannot change deps at preSynthesize stage (#2964) (5823491)
  • node-project: updated code artifact login script to work for node version above 16 (#2840) (9d6a55f), closes /docs.npmjs.com/cli/v7/using-npm/changelog#v7111-2021-04-23
  • node: NpmConfig component is created even when not used (#3028) (683b4b1), closes #2638 #2635
  • node: yarn fails with projen has unmet peer dependency "constructs@^10.0.0" (#3037) (7d0869d)
  • node: yarn fails with projen has unmet peer dependency "constructs@^10.0.0" (second attempt) (#3039) (7052082)
  • object-file: addToArray overrides all previous calls on non-existent array (#3087) (b7cf214)
  • object-file: allow boxed primitives, Set, Map and RegExp in values (#3016) (5ca5f6e)
  • poetry: add version fallback (#2969) (f3788cd)
  • python: test dependencies are ignored (#2967) (b263f82)
  • release: bump does not keep a newline at the end of version file (#2747) (53f4224)
  • release: first release ignores minMajorVersion (#3081) (c630d31)
  • release: selective bump ignores commits with 'r' and 'n' (#2768) (195aae2)
  • renovatebot: cannot use file override for renovate.json5 (#2843) (12ddafd)
  • typescript-config: add types and declarationsMap missed fields (#3000) (2854309)
  • typescript: [@typescript-eslint](https://github.com/typescript-eslint) packages are incompatible with ts5.2 (#2888) (f743730)
  • typescript: jestConfig.testMatch is ignored (#2736) (c8fff7f), closes #2733
  • upgrade-dependencies: upgrade command doesn't consider requested types (#2835) (30f41cd)