v0.32.0
0.32.0 (2022-01-03)
⚠ BREAKING CHANGES
- jest: The method
jest.addTypeScriptSupport()
is no longer available. This code is now insideTypeScriptProject
. - java:
cdkVersion
parameter ofAwsCdkJavaApp
no longer support caret (eg:"^1.136.0"
). That behavior is now controlled on whethercdkVersionPinning
is set totrue
orfalse
. - java:
addCdkDependency
method ofAwsCdkJavaApp
now expects fully qualified package names (eg:software.amazon.awscdk/aws-lambda
). - eslint: Prettier configuration is now under a
settings
option instead (instead ofprettierOptions: { bracketSpacing: false }
, writeprettierOptions: { settings: { bracketSpacing: false } }
). - prettier:
prettier.config
is now calledprettier.settings
and DOES NOT includeoverrides
. - node: The
prettierIgnoreEnabled
option is now underprettierOptions.ignoreFile
and can be accessed viaprettier.ignoreFile
. Similarly,project.addPrettierIgnore()
is nowproject.prettier.addIgnorePattern()
. - workflows: A secret called
PROJEN_GITHUB_TOKEN
withworkflows
,packages
andrepo
scopes is now required for all projects. As much as this is a bit of a burden, most projects already have such a token because otherwise projen upgrade workflows cannot really function. - jsii: The
package
task now only produces an npm tarball. To create all language bindings, usepackage-all
orpackage:LANG
for a specific language. NewProject
has been renamedInitProject
, andNewProjectOptionHints
has been renamedInitProjectOptionHints
PythonProject
is now initialized with a.projenrc.py
file by default instead of.projenrc.js
.- awscdk:
LambdaFunction
andAutoDiscover
now requirescdkDeps
so they can interact with CDK version manager. - awscdk: The
cdkVersion
andconstructsVersion
options are now semver ranges and not just specific versions. To enable the previous behavior, use a caret prefix^
. - awscdk:
LambdaFunction
andAutoDiscover
now requirescdkDeps
so they can interact with CDK version manager. - the default version of
@types/node
installed if no
minNodeVersion
is specified on Node projects is now^12
instead of
^14
. - release:
npmDistTag
only effects publishing (and supported for each release branch) setting and so it is no longer set inpackage.json
. workflow.addJobsLater()
is no longer supported. UsepostSynthesis
hooks and call.addJobs()
as needed.publish:xxxx
tasks for automated releases are not defined by default since normally they should only be executed from within workflows. SetpublishingTasks: true
to create them.- awscdk-construct: cdkVersion default value updated to
2.0.0
cdkAssert
deprecated and default changed tofalse
- new property
cdkAssertions
added and defaulted totrue
Features
- allow overriding deps (#1351) (daf0a07), closes #1342
- awscdk-app-ts: add synth:silent cdk task (#1364) (30f92b5)
- awscdk-app-ts: support cdk watch (#1323) (a969ca9)
- awscdk-construct: awscdk-construct used aws-cdk v2 by default (#1228) (9527ba8)
- eslint: use prettier if enabled (#1450) (5d970d8)
- extend prettier support (#1367) (51c1bf1), closes #1318
- GitLab CI model and base classes (#1357) (2ef39f8), closes #137 #942
- init python projects with .projenrc.py (#1346) (a84b57a)
- java: CDKv2 support (#1447) (1020d0a), closes #1446
- jsii: parallelize build of language bindings (#1359) (177ef19)
- node: do run "yarn/npm install" if package.json did not change (#1435) (d193c1c)
- node: package manifest "bugs" field (#1373) (dae6ab4), closes #1369
- projen library in go (#1350) (5862cdf), closes #1344
- pwd artifact (#1384) (d90284c)
- release: allow specifying npm dist-tag per branch (#1314) (78bf2e4)
- release: dry-run (#1363) (47f2be9)
- release: improve performance (#1352) (1f7c302)
Bug Fixes
-
awscdk-app-ts: srcdir and testdir are not configurable (#1304) (4d2d4c2)
-
awscdk: allow any context record value types (#1390) (b3dee99), closes #1349
-
awscdk: integ tests are still not working for libraries (#1302) (fb6fe7d), closes #1300 #1299
-
awscdk: issues with CDK v2 libraries and apps (take 2) (#1338) (eb1283f), closes #1327 #1288 #1326 #1173
-
awscdk: some issues with CDK v2 (#1327) (61c47b5), closes #1288 #1326 #1173
-
build: build should fail if mutations were found (#1428) (37e2ed2), closes #1423 #1422
-
CDK integration snapshots have local paths when working with assets (#1360) (672e361), closes 40aws-cdk/cdk-integ-tools/lib/integ-helpers.ts#L190-L192
-
CDK v2 integration tests should not use v1 feature flags (#1345) (df1cd94), closes #1343
-
cleanup: file pruning is too heavy handed (#1306) (7918958), closes #1265
-
jest: tests are picked up from
dist/
(#1456) (1139411), closes #1441 -
jsii: upgrade workflow no longer needs to run pacmak (#1416) (5d7ebb7), closes /github.com/projen/projen/pull/1383#discussion_r776334094
-
mergify: not all build jobs are considered (#1406) (490abbf)
-
node: lockfile not updated after "*" deps are resolved (#1451) (8d12b72), closes #1435 #1443
-
node: npm releases are broken for non-jsii projects (#1377) (ddff753), closes #1376
-
remove gitattributes spacing alignment (#1303) (543b3e9), closes #1085
-
workflows: mutation check did not consider unstaged changes (#1417) (4ac9273)
-
workflows: status check update is not working (#1383) (8f76a4d), closes #1362