Skip to main content
Jack Sleight .DEV

Upgrade from v3 to v4


Bard Texstyle 4 requires Statamic 6 and contains a couple of breaking changes.

Breaking Changes

New Statamic icon set (High Impact)

Statamic 6 has a single icon set with new names. If you were using Statamic's built-in icons in your styles or pins configuration, you will need to update the icon names.

Pins view path changed (High Impact)

The default view path for pins has changed from pins to partials/pins. If you have existing pin views, you should either move your views from resources/views/pins/ to resources/views/partials/pins/ or set the pins_path config option to restore the old path:

'pins_path' => 'pins',
'pins_path' => 'pins',

Heading style level option removed (Medium Impact)

The deprecated heading style level option has been removed. You must now specify one of six heading types in the type option instead:

'title' => [
'type' => 'heading',
'level' => 1,
// ...
],
'title' => [
'type' => 'heading',
'level' => 1,
// ...
],
'title' => [
'type' => 'heading_1',
// ...
],
'title' => [
'type' => 'heading_1',
// ...
],

Legacy default_classes option removed (Medium Impact)

The deprecated default_classes configuration option has been removed. You must now use the defaults option with the new format:

'default_classes' => [
'heading' => [
1 => 'heading-1',
2 => 'heading-2',
],
'paragraph' => 'paragraph',
],
'default_classes' => [
'heading' => [
1 => 'heading-1',
2 => 'heading-2',
],
'paragraph' => 'paragraph',
],
'defaults' => [
'heading_1' => [
'class' => 'heading-1',
],
'heading_2' => [
'class' => 'heading-2',
],
'paragraph' => [
'class' => 'paragraph',
],
],
'defaults' => [
'heading_1' => [
'class' => 'heading-1',
],
'heading_2' => [
'class' => 'heading-2',
],
'paragraph' => [
'class' => 'paragraph',
],
],