Skip to content

Releases: brefphp/bref

0.5.31

25 Sep 13:09
Compare
Choose a tag to compare

Full diff

👋 hey everyone, new Bref release!

This release comes with new runtime versions:

  • if you use serverless.yml, you don't have anything to do 😎
  • if you use SAM or CloudFormation or Terraform or CDK, update the layer version numbers (see runtimes.bref.sh)

Enhancements:

  • Bumped PHP versions to latest versions #750, including PHP 8 beta4 in b7f22a7 (@chapeupreto, @mnapoli)
  • Enable HTTP/2 for CURL #740 (@shouze)
  • Experimental: Add native support for providing handlers from PSR-11 containers #694 (@mnapoli) This feature is not documented and experimental, expect it stable and usable for Bref 1.0.

Fixed bugs:

  • Fix shell typo in nghttp2 build script #748 (@shouze)

Documentation updates:

  • Fix typo in "PHP functions" #760 (@tywmick)
  • Added public IP limitation of Aurora Serverless in the database documentation #751 (@evrend)

Also, in related news serverless 2.3.0 now supports !Sub and native CloudFormation variables. More details here: https://twitter.com/matthieunapoli/status/1309478526723260416

By the way, still looking for sponsors :) https://github.com/sponsors/mnapoli ❤️

0.5.30

08 Sep 13:00
Compare
Choose a tag to compare

Full diff

👋 hey everyone, new Bref release!

This release comes with new runtime versions:

  • if you use serverless.yml, you don't have anything to do 😎
  • if you use SAM or CloudFormation or Terraform or CDK, update the layer version numbers (see https://runtimes.bref.sh/)

Enhancements:

Minor changes:

Documentation improvements:

0.5.29

14 Jul 13:16
Compare
Choose a tag to compare

How to test your applications with PHP 8.0 (alpha2)? Replace the PHP version in serverless.yml:

functions:
    function:
        ...
        layers:
-            - ${bref:layer.php-74}
+            - ${bref:layer.php-80}
    web:
        ...
        layers:
-            - ${bref:layer.php-74-fpm}
+            - ${bref:layer.php-80-fpm}

0.5.28

30 Jun 09:26
f160045
Compare
Choose a tag to compare
  • #673 Upgrade to version 1.0 of the async-aws package
  • #674 Add very basic analytics via a ping

0.5.27

18 Jun 09:31
Compare
Choose a tag to compare

#670 Fix API Gateway request parsing (sometimes the version is not included in the payload)

0.5.26

11 Jun 15:51
b91ffc7
Compare
Choose a tag to compare

This release brings support for the API Gateway v2 payload format via #604/#602 by @victormacko & @mnapoli.

To use that v2 format, you have to deploy a function using the "HTTP API" (instead of the REST API), and set the payload version to 2.0:

provider:
    ...
    httpApi:
        payload: '2.0'

functions:
    hello:
        ...
        events:
            # `httpApi` instead of `http`
            -   httpApi: '*'

You don't need to use it, we are simply adding support for forward compatibility.

If you don't know what all that means, that's fine, you can ignore it :)

0.5.25

28 May 09:38
Compare
Choose a tag to compare

First, a big thank you to our new sponsors:

Enhancements:

#643 #644 Support the new "Cape Town" and "Milan" regions, by @richardnbanks and @AlessandroMinoccheri
#654 The PDO MySQL extension is now enabled by default, by @mnapoli
#640 Kinesis events can now be handled via a typed handler class, by @i906

Bugfixes:

#639 fixed in #645: Fix PHP-FPM instability in case of timeouts (the process was sometimes killing itself because process IDs can be reused in rare cases), by @cosmok
#659 Fix the parsing of SQS message attributes, by @Nyholm

Other:

#657 Upgraded the AsyncAws dependency, by @swiffer

0.5.24

27 Apr 12:13
404c69f
Compare
Choose a tag to compare

#615 New console invocation format: perfect for cron jobs

The console runtime now takes a simple string as the "event". That makes cron much easier to define, for example:

        events:
            - schedule:
                rate: rate(1 minute)
                input: 'doctrine:migrate --force'

Note that backward compatibility is kept with the old input array format.

0.5.23

17 Apr 18:04
Compare
Choose a tag to compare

The main feature in this new version is the support for DynamoDB events via typed class handlers. Added in #560 and #561 by @jasonmccallister and @pmayet.

Example of such a handler:

class MyHandler extends DynamoDbHandler
{
    public function handleDynamoDb(DynamoDbEvent $event, Context $context): void
    {
        // the $event variable is typed and provides information
        // about the records that triggered the event
        // for example:
        $updatedRecord = $event->getRecords()[0]->getNewImage();
    }
}

To configure this in serverless.yml, create a function using the php-73/php-74 function runtime and follow the documentation here: https://serverless.com/framework/docs/providers/aws/events/streams/

Additionally, this release should fix the fix of the fix for the vendor/bin/bref dashboard command 🤓

0.5.22

13 Apr 14:47
Compare
Choose a tag to compare

Nothing new, this release fixes the build of Docker images.