Skip to content

v0.8.0

Choose a tag to compare

@github-actions github-actions released this 16 Jan 20:00
· 480 commits to refs/heads/main since this release
e9ce56a

0.8.0 (2023-01-16)

⚠ BREAKING CHANGES

  • python: The default Python version used for Poetry and Setuptools was updated to >=3.7 as 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-python or package-dotnet jobs 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:update task when alwaysUpdateSnapshots is enabled (default is enabled). This task was exactly the same as test which can be used instead. Alternatively set alwaysUpdateSnapshots to false to change the behavior of test and add an explicit test:update task.

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 in buildWorkflow) as a default to avoid breaking changes

Fix

  • Deleted "--updateSnapshot" for the task "test"
  • Added alwaysUpdateSnapshots option to keep the current behavior
    • Deleted "test:update" if alwaysUpdateSnapshots is 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 alwaysUpdateSnapshots false, because it's doing almost same thing already
  • release: existing tags for prerelease not respected (projen#2098)
  • add Project.commitGenerated prop (projen#1972)
  • cdk8s: * python: PytestSample now requires an explicit moduleName, as part of the new options: PytestSampleOptions parameter (replacing testdir). If you have a PythonProject the module name is available from pythonProject.moduleName.
  • cdk8s: In Cdk8sTypeScriptApp, information about the used cdk8s version are now available from Cdk8sTypeScriptApp.cdk8sDeps.

Features

Bug Fixes

  • JsiiProject does not use workflowRunsOn for workflows (#2075) (9b4704b)

  • awscdk: Export awscdk-deps-py in index (#2108) (561db27)

  • awscdk: fix pytest import path (#2008) (a0c78be)

  • awscdk: test sample code uses import based on srcdir (#2299) (ec00ecb)

  • getfacl not found (#2136) (2202a34), closes #2134

  • 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--all argument (#2242) (b96249d)

  • jest: new snapshots are added when updating snapshots is disabled (#2271) (1ae5e3f)

  • jsii-docgen: annotate output as generated (#2013) (8c5911f)

  • 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: minMajorVersion is 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 new throws "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-python and setup-dotnet (#2198) (bae5ca0)