Repository navigation
v0.8.0
0.8.0 (2023-01-16)
⚠ BREAKING CHANGES
- python: The default Python version used for Poetry and Setuptools was updated to
>=3.7as required by each of these packages. - gitlab: GitLab job names from the projen CI configuration will be preserved rather than changed to snake case
- github: If you have customized the
package-pythonorpackage-dotnetjobs of the release workflow, please review the changes for the release of the respective action.
actions/setup-python@v4: https://github.com/actions/setup-python/releases/tag/v4.0.0
actions/setup-dotnet@v3: https://github.com/actions/setup-dotnet/releases/tag/v3.0.0
- github: Requires self-hosted GitHub Actions runners to be updated to version 2.297.0 or greater.
- jest: Removal of
test:updatetask whenalwaysUpdateSnapshotsis enabled (default is enabled). This task was exactly the same astestwhich can be used instead. Alternatively setalwaysUpdateSnapshotstofalseto change the behavior oftestand add an explicittest:updatetask.
fixes projen#1144
Description
- As a lot of users is noticing, updating snapshot in task "test" is a unexpected behavior and it should be separated as "test:update" that already exists
- I believe that snapshot should not be updated in the
buildWorkflow, because snapshot test is one important way to confirm that the auto updates doesn't break something. Although, I would try to keep the current behavior (updating snapshots inbuildWorkflow) as a default to avoid breaking changes
Fix
- Deleted "--updateSnapshot" for the task "test"
- Added
alwaysUpdateSnapshotsoption to keep the current behavior- Deleted "test:update" if
alwaysUpdateSnapshotsis true because it is confusing that "test:update" is doing the same thing- This can be a breaking change for people currently using "test:update", but I think it is easy enough to migrate to "test" or configuring
alwaysUpdateSnapshotsfalse, because it's doing almost same thing already
- This can be a breaking change for people currently using "test:update", but I think it is easy enough to migrate to "test" or configuring
- Deleted "test:update" if
- release: existing tags for prerelease not respected (projen#2098)
- add Project.commitGenerated prop (projen#1972)
- cdk8s: * python:
PytestSamplenow requires an explicitmoduleName, as part of the newoptions: PytestSampleOptionsparameter (replacingtestdir). If you have aPythonProjectthe module name is available frompythonProject.moduleName. - cdk8s: In
Cdk8sTypeScriptApp, information about the usedcdk8sversion are now available fromCdk8sTypeScriptApp.cdk8sDeps.
Features
- add Node.js 18 Lambda runtime (#2289) (133b10a)
- add Project.commitGenerated prop (#1972) (b578083)
- add support for
cpcommand on Windows using shx (#2004) (a7058b7) - add support for gzip compression in latest jsii/file-redirect s… (#2025) (7a3ba34), closes #2024
- Adding notes about forcing release versions (#2070) (274682b)
- adding steps for upgrading project to .ts file (#1995) (10551cf)
- awscdk: custom Lambda runtimes (#1982) (83d148b)
- bump actions/setup-node@v3 for NodeProject (#2022) (b225cd9)
- cdk8s: add support for building cdk8s apps with python (#1720) (e5cc514)
- cdk: allow user to pass arguments to deploy and destroy tasks (#2249) (246d8d3)
- eslint: expose eslint task from the eslint component, so consumer could easily refer to (#2325) (d6ddc13)
- github: support
working-directoryon GitHub Actions Workflow Step (#2187) (2bc290b), closes #2185 - jest: new option to disable updating snapshots in test task (#2129) (c84c8f9)
- jest: support running single tests by passing arguments through to jest (#2247) (6b7ab97)
- jsii-project: add support for compressing assembly file (#2056) (1e88e36)
- jsii-project: allow passing the go package name (#2001) (896bb1a)
- jsii-project: support
iconUrlonJsiiDotNetTarget(#2035) (d5b0b19) - made bundler esbuild loaders configurable (#2181) (#2183) (5ca981d)
- object-file: added ability to apply JSON patches to object files (#1994) (f01c425)
- optionally support comments in .json and in .jsonc files (#2045) (022c4bf)
- PNPM: Updated to latest version (#2086) (cddd4d1)
- pom: support adding phase to plugin execution (#2079) (a3c0556)
- release: add option to set the minimal major version (#2000) (08378c4)
- release: allow github oidc auth provider for aws code artifact (#2111) (c6048af), closes #1313 /github.com/cdklabs/publib/blob/main/bin/publib-npm#L24-L40
- release: github releases support the prerelease option (#2168) (ae0889a)
- renovate: add options to overwrite configuration (#2293) (b152a20), closes #2292
- tasks: allow passing arguments to tasks (#2246) (46a4167), closes #356
- vscode: support additional launch config properties (#2044) (777eb08)
- vscode: support VS Code workspace settings (#2047) (9e5454f)
- vscode: support workspace recommended extensions (#2046) (17634fa)
Bug Fixes
-
JsiiProjectdoes not useworkflowRunsOnfor workflows (#2075) (9b4704b) -
awscdk: test sample code uses import based on srcdir (#2299) (ec00ecb)
-
github: correct secret name for GithubCredentials docs (#2148) (89be57a), closes #2147
-
github: set-output warning from main-upgrade workflow (#2196) (e03ec01), closes #2194
-
gitlab: job names not preserved in gitlab-ci configuration (#2318) (70c759e), closes #2315
-
ignore overriden dependencies in renovate (#2127) (5bbdffe), closes #2126
-
javascript: jest cli doesn't have an
--allargument (#2242) (b96249d) -
jest: new snapshots are added when updating snapshots is disabled (#2271) (1ae5e3f)
-
jsii: @types/babel__traverse@7.18.3 breaks builds (#2265) (ee4e20c)
-
jsii: cannot build project after upgrade of got (#2090) (b2b12bc)
-
jsii: remove hard-coded Node.js version in build workflows (#2074) (174c765), closes #2073
-
jsii: run workflow setup steps for language jobs (#2311) (4b95e14), closes #1799 #1006
-
lambda function not bundled with tsconfig.dev.json (#2116) (0a9851f)
-
nextjs: default node versions for Next.js are out-of-date (#2083) (64f486d)
-
node: add newline to package.json on release (#2192) (7c2c288), closes #2191
-
node: projen removes trailing newline from package.json and package managers add it back (#2105) (d0fcddf), closes #2076
-
projenrc: projenrc class does not create
--outdir(#2138) (88757c1), closes #2099 #2099 -
python project dependencies when running Jest Test (#2018) (cf51eaf), closes #2017
-
python: bump minimum python version to 3.7 (#2357) (e9ce56a), closes #2356
-
react-ts:
@types/express(4.17.14) and@types/express-serve-static-core(4.17.31) break compilation (#2123) (2577ae5) -
release:
minMajorVersionis ignored in release workflow (#2158) (4e3a2f3) -
release: artifact permissions are not preserved in github actions (#2132) (15399b1), closes #2103
-
release: existing tags for prerelease not respected (#2098) (22c95b7)
-
release: publish to npm workflow fails when set project package manager to PNPM (#2113) (067cc45), closes #2078
-
setting proper tailwindcss config filename (#2082) (8ffe921), closes #1853
-
tasks:
projen newthrows "unknown command" error for external projects (#2252) (9f2c7e6), closes #2250 #2246 -
typescript: cannot build project after upgrade of got (#2091) (077886b)
-
use posix paths for autodiscovered lambda entrypoints (#2345) (801889b), closes #2344
-
use posix paths for generated lambda construct files (#2354) (7ecc7e0), closes #2353
-
use posix paths for lambda outfiles (#2348) (70191d6), closes #2347
-
utils: always parse json like files with comment-json (#2287) (07836a9), closes #2286
-
github: upgrade versions of workflow actions to
setup-pythonandsetup-dotnet(#2198) (bae5ca0)