Skip to content

Commit 1766e4d

Browse files
author
Tom Mitchelmore
committed
Add v7 and v8 to what's new
1 parent ffda84e commit 1766e4d

4 files changed

Lines changed: 132 additions & 12 deletions

File tree

docs/whats-new.md

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,59 @@ sidebar_position: 1
66

77
# What's New
88

9+
## What's new in v8.0
10+
11+
Lumberjack v8.0 is a major release that updates many core dependencies to provide full support for PHP 8.4.
12+
13+
## Major Dependency Updates
14+
15+
This release updates several critical components to their latest major versions:
16+
17+
- PHP-DI: 6.x → 7.x
18+
- Monolog: 2.x → 3.x
19+
- Illuminate Collections: 8.x/9.x → 10.x
20+
- Laminas Diactoros: 2.x → 3.x
21+
- PSR Container/Log: 1.x → 2.x
22+
- Mindplay Middleman: 3.x → 4.x
23+
24+
The [Upgrade Guide](./upgrade-guide.md#upgrading-from-v7-to-v8) details the required breaking changes.
25+
26+
### Features
27+
28+
#### New Exception Handling with Ignition
29+
30+
Lumberjack has replaced the legacy Symfony Debug component with Spatie Ignition. This provides a much more robust and beautiful error reporting interface for developers.
31+
32+
#### Facades moved into core
33+
34+
`blast/facades` has been deprecated in favour of an internal facades implementation to provide PHP 8.4 support.
35+
36+
#### Native Dcrypt Implementation
37+
38+
`mmeyer2k/dcrypt` has been replaced by an internal version to provide PHP 8.4 support.
39+
40+
## What's new in v7.0
41+
42+
Lumberjack v7.0 introduces support for Timber v2. It also bumps the minimum PHP requirement to 8.1 and adds official support for PHP 8.3.
43+
44+
### Features
45+
46+
#### Automatic Post Class Mapping
47+
48+
Lumberjack will now automatically add custom post types to the `timber/post/classmap` filter. This means Timber will always return the correct class when calling methods such as `Timber::get_post()`.
49+
50+
#### Simplified Querying
51+
52+
Because of the new automatic Class Mapping, the as() method has been removed from the QueryBuilder. Queries will now automatically return the correct Post subclass based on the WordPress Post Type.
53+
54+
```php
55+
// Before (v6.x)
56+
$posts = MyPost::query()->as(MyPost::class)->get();
57+
58+
// Now (v7.x)
59+
$posts = MyPost::query()->get();
60+
```
61+
962
## What's new in v6.0
1063

1164
Lumberjack v6.0 comes with PHP 8.1 support. It also replaced the (deprecated) [tightenco/collect](https://packagist.org/packages/tightenco/collect) package with [illuminate/collections](https://packagist.org/packages/illuminate/collections) package.
@@ -34,8 +87,6 @@ return [
3487

3588
This release of Lumberjack is jam packed full of goodies. We have also added a whole lot more documentation, so grab a cuppa and make yourself comfy while we take you through all the changes.
3689

37-
## What's new in v4.3
38-
3990
### Features
4091

4192
#### Middleware Aliases on routes and controllers
@@ -345,7 +396,7 @@ We've baked-in the [rareloop/lumberjack-querybuilder](https://github.com/Rareloo
345396

346397
This is one of the bigger features added to v4. You can now manage sessions in a concise, expressive and headache-free way.
347398

348-
Let's dive straight into what sessions look like in Lumberjack. We'll be using the [global helper function](./the-basics/helpers.md#session) `session()` for these examples; [_make sure you have enabled them_ ](./the-basics/helpers.md#adding-global-helpers)_if you want to use it too._
399+
Let's dive straight into what sessions look like in Lumberjack. We'll be using the [global helper function](./the-basics/helpers.md#session) `session()` for these examples; [_make sure you have enabled them_](./the-basics/helpers.md#adding-global-helpers)_if you want to use it too._
349400

350401
```php
351402
// Get a value, with a default value

versioned_docs/version-v6/whats-new.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ return [
3434

3535
This release of Lumberjack is jam packed full of goodies. We have also added a whole lot more documentation, so grab a cuppa and make yourself comfy while we take you through all the changes.
3636

37-
## What's new in v4.3
38-
3937
### Features
4038

4139
#### Middleware Aliases on routes and controllers
@@ -345,7 +343,7 @@ We've baked-in the [rareloop/lumberjack-querybuilder](https://github.com/Rareloo
345343

346344
This is one of the bigger features added to v4. You can now manage sessions in a concise, expressive and headache-free way.
347345

348-
Let's dive straight into what sessions look like in Lumberjack. We'll be using the [global helper function](./the-basics/helpers.md#session) `session()` for these examples; [_make sure you have enabled them_ ](./the-basics/helpers.md#adding-global-helpers)_if you want to use it too._
346+
Let's dive straight into what sessions look like in Lumberjack. We'll be using the [global helper function](./the-basics/helpers.md#session) `session()` for these examples; [_make sure you have enabled them_](./the-basics/helpers.md#adding-global-helpers)_if you want to use it too._
349347

350348
```php
351349
// Get a value, with a default value

versioned_docs/version-v7/whats-new.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,28 @@ sidebar_position: 1
66

77
# What's New
88

9+
## What's new in v7.0
10+
11+
Lumberjack v7.0 introduces support for Timber v2. It also bumps the minimum PHP requirement to 8.1 and adds official support for PHP 8.3.
12+
13+
### Features
14+
15+
#### Automatic Post Class Mapping
16+
17+
Lumberjack will now automatically add custom post types to the `timber/post/classmap` filter. This means Timber will always return the correct class when calling methods such as `Timber::get_post()`.
18+
19+
#### Simplified Querying
20+
21+
Because of the new automatic Class Mapping, the as() method has been removed from the QueryBuilder. Queries will now automatically return the correct Post subclass based on the WordPress Post Type.
22+
23+
```php
24+
// Before (v6.x)
25+
$posts = MyPost::query()->as(MyPost::class)->get();
26+
27+
// Now (v7.x)
28+
$posts = MyPost::query()->get();
29+
```
30+
931
## What's new in v6.0
1032

1133
Lumberjack v6.0 comes with PHP 8.1 support. It also replaced the (deprecated) [tightenco/collect](https://packagist.org/packages/tightenco/collect) package with [illuminate/collections](https://packagist.org/packages/illuminate/collections) package.
@@ -34,8 +56,6 @@ return [
3456

3557
This release of Lumberjack is jam packed full of goodies. We have also added a whole lot more documentation, so grab a cuppa and make yourself comfy while we take you through all the changes.
3658

37-
## What's new in v4.3
38-
3959
### Features
4060

4161
#### Middleware Aliases on routes and controllers
@@ -345,7 +365,7 @@ We've baked-in the [rareloop/lumberjack-querybuilder](https://github.com/Rareloo
345365

346366
This is one of the bigger features added to v4. You can now manage sessions in a concise, expressive and headache-free way.
347367

348-
Let's dive straight into what sessions look like in Lumberjack. We'll be using the [global helper function](./the-basics/helpers.md#session) `session()` for these examples; [_make sure you have enabled them_ ](./the-basics/helpers.md#adding-global-helpers)_if you want to use it too._
368+
Let's dive straight into what sessions look like in Lumberjack. We'll be using the [global helper function](./the-basics/helpers.md#session) `session()` for these examples; [_make sure you have enabled them_](./the-basics/helpers.md#adding-global-helpers)_if you want to use it too._
349369

350370
```php
351371
// Get a value, with a default value

versioned_docs/version-v8/whats-new.md

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,59 @@ sidebar_position: 1
66

77
# What's New
88

9+
## What's new in v8.0
10+
11+
Lumberjack v8.0 is a major release that updates many core dependencies to provide full support for PHP 8.4.
12+
13+
## Major Dependency Updates
14+
15+
This release updates several critical components to their latest major versions:
16+
17+
- PHP-DI: 6.x → 7.x
18+
- Monolog: 2.x → 3.x
19+
- Illuminate Collections: 8.x/9.x → 10.x
20+
- Laminas Diactoros: 2.x → 3.x
21+
- PSR Container/Log: 1.x → 2.x
22+
- Mindplay Middleman: 3.x → 4.x
23+
24+
The [Upgrade Guide](./upgrade-guide.md#upgrading-from-v7-to-v8) details the required breaking changes.
25+
26+
### Features
27+
28+
#### New Exception Handling with Ignition
29+
30+
Lumberjack has replaced the legacy Symfony Debug component with Spatie Ignition. This provides a much more robust and beautiful error reporting interface for developers.
31+
32+
#### Facades moved into core
33+
34+
`blast/facades` has been deprecated in favour of an internal facades implementation to provide PHP 8.4 support.
35+
36+
#### Native Dcrypt Implementation
37+
38+
`mmeyer2k/dcrypt` has been replaced by an internal version to provide PHP 8.4 support.
39+
40+
## What's new in v7.0
41+
42+
Lumberjack v7.0 introduces support for Timber v2. It also bumps the minimum PHP requirement to 8.1 and adds official support for PHP 8.3.
43+
44+
### Features
45+
46+
#### Automatic Post Class Mapping
47+
48+
Lumberjack will now automatically add custom post types to the `timber/post/classmap` filter. This means Timber will always return the correct class when calling methods such as `Timber::get_post()`.
49+
50+
#### Simplified Querying
51+
52+
Because of the new automatic Class Mapping, the as() method has been removed from the QueryBuilder. Queries will now automatically return the correct Post subclass based on the WordPress Post Type.
53+
54+
```php
55+
// Before (v6.x)
56+
$posts = MyPost::query()->as(MyPost::class)->get();
57+
58+
// Now (v7.x)
59+
$posts = MyPost::query()->get();
60+
```
61+
962
## What's new in v6.0
1063

1164
Lumberjack v6.0 comes with PHP 8.1 support. It also replaced the (deprecated) [tightenco/collect](https://packagist.org/packages/tightenco/collect) package with [illuminate/collections](https://packagist.org/packages/illuminate/collections) package.
@@ -34,8 +87,6 @@ return [
3487

3588
This release of Lumberjack is jam packed full of goodies. We have also added a whole lot more documentation, so grab a cuppa and make yourself comfy while we take you through all the changes.
3689

37-
## What's new in v4.3
38-
3990
### Features
4091

4192
#### Middleware Aliases on routes and controllers
@@ -345,7 +396,7 @@ We've baked-in the [rareloop/lumberjack-querybuilder](https://github.com/Rareloo
345396

346397
This is one of the bigger features added to v4. You can now manage sessions in a concise, expressive and headache-free way.
347398

348-
Let's dive straight into what sessions look like in Lumberjack. We'll be using the [global helper function](./the-basics/helpers.md#session) `session()` for these examples; [_make sure you have enabled them_ ](./the-basics/helpers.md#adding-global-helpers)_if you want to use it too._
399+
Let's dive straight into what sessions look like in Lumberjack. We'll be using the [global helper function](./the-basics/helpers.md#session) `session()` for these examples; [_make sure you have enabled them_](./the-basics/helpers.md#adding-global-helpers)_if you want to use it too._
349400

350401
```php
351402
// Get a value, with a default value

0 commit comments

Comments
 (0)