Release Notes > Older Releases > 5.19.0
Webiny 5.19.0 Changelog
See what's new in Webiny version 5.19.0.
Changes
Development
Locked Versions of@pulumi/*
Packages (#2089)
In attempt to make things a bit more stable, we’ve decided to put a lock on the @pulumi/*
NPM package versions. Locking has been achieved via the resolutions
property in the root package.json
file.
@pulumi/*
NPM packages are being utilized by Pulumi, the underlying infrastructure-as-code (IaC) solution Webiny relies on. To learn more, check out the Infrastructure as Code With Pulumi key topic.
For existing projects that are being upgraded to 5.19.0
, the resolutions
property will be updated via the webiny upgrade
command.
Pulumi SDK - Using Correct Separator When ConstructingPATH
Environment Variable (#2084)
Because of an issue in the construction of the PATH
environment variable in our internal Pulumi SDK, on non-Windows operating systems, users might’ve experienced an issue during deployment of their custom project applications. This has now been addressed, so new deployments should work as expected.
Thank you goes to @snstanton for discovering this! ️️❤️
Fixed Incorrect AWS Profile Being Logged During Deployment (#2078)
In order to use the webiny deploy
command, AWS credentials need to be set, which can be done in multiple ways.
When relying on environment variables, users can choose to either use a combination of AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
, or a single AWS_PROFILE
variable. In case of the former, we’ve noticed that, during deployment, an incorrect message would get displayed in the terminal, saying AWS profile “undefined” is being used.
This has now been addressed. From now on, when a combination of AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
environment variables is used, the AWS Access Key ID will be displayed instead.
Newacl
andcacheControl
Options on theuploadFolderToS3
Function (#2066,#2083)
The uploadFolderToS3
is a small utility function that is used to upload a complete folder directly to an Amazon S3 bucket. At the moment, it’s used when you deploy your Admin Area and Website project applications, within apps/admin/cli/deploy.ts
and apps/admin/cli/deploy.ts
, respectively.
With this release, we’ve improved this utility function, by enabling users to specify the acl
and cacheControl
properties that will be set for every uploaded file.
Once again, a big thank you to @snstanton for implementing this nifty improvement! 🍻
The acl
property lets you set Canned ACL for every uploaded file. To learn more, check out official AWS documentation.
webiny deploy
Command - Introduced--deploy
Flag (#2096)
A new --deploy
flag has been added to the webiny deploy
.
By setting it to false (by passing --no-deploy
), this small addition allows users to skip the deployment step, which can be useful if they only want to build the specified project application. For example:
webiny watch
Command - Fixed Multiline Logs (#2103)
Previously, if you were to add multiline logs in your cloud infrastructure (Pulumi) code, the webiny watch
command’s terminal output would get truncated. This has now been addressed, so you can freely add any additional multiline logs that you might need.
Page Builder
Button Page Element - Ability to Register a Custom Callback Handler (#2022)
Prior to this release, we could say the default Button page element was a bit “basic”, since it was only capable of representing a link and nothing else. But, not anymore.
Thanks to @econtentmaps, the Button page element can now also be configured to execute a piece of code (a click handler) that you previously registered via the new PbButtonElementClickHandlerPlugin
plugin.
Here are a couple of quick examples that show how to use this new plugin type:
Headless CMS
Searching the Reference Field for Any Version of the Entry (#2068)
For example, we have models Category
and Article
, and Category
is a single value ref field on the Article
model.
Prior to 5.19.0 you could not search all Articles
that have Category
, for example, My Category in any version. From now on, you will be able to.
Here is an example of the GraphQL Query for it:
Uppercase and Lowercase Field Validators With Space (#2080)
We added new validators that will match either A-Z + space or a-z + space. They are available in newly created projects from 5.19.0 onward.
If you need them in your existing project, you will need to add them in your apps/admin/code/src/plugins/headlessCms.ts
file.
You need to add 4 plugins in total:
And, of course, add them to the default export array: