Skip to content

Commit

Permalink
Livewire v3 is out of beta
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Aug 24, 2023
1 parent 2d9375b commit a3ab60e
Show file tree
Hide file tree
Showing 15 changed files with 551 additions and 285 deletions.
673 changes: 522 additions & 151 deletions composer.lock

Large diffs are not rendered by default.

10 changes: 2 additions & 8 deletions packages/actions/docs/01-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ Filament requires the following to run:
- Laravel v10.0+
- Livewire v3.0+

> **Livewire v3 is still in beta!**<br />
> Although breaking changes should be minimal, we recommend testing your application thoroughly before using Filament v3 in production.
> **Livewire v3 is recently released!**<br />
> The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
## Installation

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

Require the Actions package using Composer:

```bash
Expand Down
16 changes: 2 additions & 14 deletions packages/actions/docs/10-upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@ title: Upgrading from v2.x

Please upgrade Filament before upgrading to Livewire v3. Instructions on how to upgrade Livewire can be found [here](https://livewire.laravel.com/docs/upgrading).

> **Livewire v3 is still in beta!**<br />
> Although breaking changes should be minimal, we recommend testing your application thoroughly before using Filament v3 in production.
> **Livewire v3 is recently released!**<br />
> The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
## Upgrading automatically

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

The easiest way to upgrade your app is to run the automated upgrade script. This script will automatically upgrade your application to the latest version of Filament and make changes to your code, which handles most breaking changes.

```bash
Expand All @@ -40,12 +34,6 @@ You can now `composer remove filament/upgrade` as you don't need it anymore.
## Upgrading manually

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

### Low-impact changes

#### Action execution with forms
Expand Down
10 changes: 2 additions & 8 deletions packages/forms/docs/01-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ Filament requires the following to run:
- Laravel v10.0+
- Livewire v3.0+

> **Livewire v3 is still in beta!**<br />
> Although breaking changes should be minimal, we recommend testing your application thoroughly before using Filament v3 in production.
> **Livewire v3 is recently released!**<br />
> The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
## Installation

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

Require the Form Builder package using Composer:

```bash
Expand Down
18 changes: 3 additions & 15 deletions packages/forms/docs/10-upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@ title: Upgrading from v2.x

Please upgrade Filament before upgrading to Livewire v3. Instructions on how to upgrade Livewire can be found [here](https://livewire.laravel.com/docs/upgrading).

> **Livewire v3 is still in beta!**<br />
> Although breaking changes should be minimal, we recommend testing your application thoroughly before using Filament v3 in production.
> **Livewire v3 is recently released!**<br />
> The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
## Upgrading automatically

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

The easiest way to upgrade your app is to run the automated upgrade script. This script will automatically upgrade your application to the latest version of Filament, and make changes to your code which handle most breaking changes.

```bash
Expand All @@ -39,12 +33,6 @@ You can now `composer remove filament/upgrade` as you don't need it anymore.
## Upgrading manually

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

### High-impact changes

#### Config file renamed and combined with other Filament packages
Expand All @@ -62,7 +50,7 @@ The `FORMS_FILESYSTEM_DRIVER` .env variable has been renamed to `FILAMENT_FILESY

#### New `@filamentScripts` and `@filamentStyles` Blade directives

The `@filamentScripts` and `@filamentStyles` Blade directives must be added to your Blade layout file/s. Since Livewire 3 no longer uses similar directives, you can replace `@livewireScripts` with `@filamentScripts` and `@livewireStyles` with `@filamentStyles`.
The `@filamentScripts` and `@filamentStyles` Blade directives must be added to your Blade layout file/s. Since Livewire v3 no longer uses similar directives, you can replace `@livewireScripts` with `@filamentScripts` and `@livewireStyles` with `@filamentStyles`.

#### CSS file removed

Expand Down
10 changes: 2 additions & 8 deletions packages/infolists/docs/01-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ Filament requires the following to run:
- Laravel v10.0+
- Livewire v3.0+

> **Livewire v3 is still in beta!**<br />
> Although breaking changes should be minimal, we recommend testing your application thoroughly before using Filament v3 in production.
> **Livewire v3 is recently released!**<br />
> The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
## Installation

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

Require the Infolist Builder package using Composer:

```bash
Expand Down
12 changes: 3 additions & 9 deletions packages/notifications/docs/01-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@ Filament requires the following to run:
- Laravel v10.0+
- Livewire v3.0+

> **Livewire v3 is still in beta**
> Although breaking changes should be minimal, we recommend testing your application thoroughly before using Livewire v3 in production.
> **Livewire v3 is recently released!**<br />
> The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
First, since Livewire v3 is still in beta, make sure that the `minimum-stability` in your `composer.json` is set to `dev`:

```json
"minimum-stability": "dev",
```

Then, require the Notifications package using Composer:
Require the Notifications package using Composer:

```bash
composer require filament/notifications:"^3.0-stable" -W
Expand Down
18 changes: 3 additions & 15 deletions packages/notifications/docs/07-upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@ title: Upgrading from v2.x

Please upgrade Filament before upgrading to Livewire v3. Instructions on how to upgrade Livewire can be found [here](https://livewire.laravel.com/docs/upgrading).

> **Livewire v3 is still in beta!**<br />
> Although breaking changes should be minimal, we recommend testing your application thoroughly before using Filament v3 in production.
> **Livewire v3 is recently released!**<br />
> The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
## Upgrading automatically

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

The easiest way to upgrade your app is to run the automated upgrade script. This script will automatically upgrade your application to the latest version of Filament, and make changes to your code which handle most breaking changes.

```bash
Expand All @@ -39,12 +33,6 @@ You can now `composer remove filament/upgrade` as you don't need it anymore.
## Upgrading manually

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

### High-impact changes

#### Config file renamed and combined with other Filament packages
Expand All @@ -58,7 +46,7 @@ rm config/notifications.php

#### New `@filamentScripts` and `@filamentStyles` Blade directives

The `@filamentScripts` and `@filamentStyles` Blade directives must be added to your Blade layout file/s. Since Livewire 3 no longer uses similar directives, you can replace `@livewireScripts` with `@filamentScripts` and `@livewireStyles` with `@filamentStyles`.
The `@filamentScripts` and `@filamentStyles` Blade directives must be added to your Blade layout file/s. Since Livewire v3 no longer uses similar directives, you can replace `@livewireScripts` with `@filamentScripts` and `@livewireStyles` with `@filamentStyles`.

#### JavaScript assets

Expand Down
10 changes: 2 additions & 8 deletions packages/panels/docs/01-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,13 @@ Filament requires the following to run:
- Laravel v10.0+
- Livewire v3.0+

> **Livewire v3 is still in beta!**<br />
> Although breaking changes should be minimal, we recommend testing your application thoroughly before using Filament v3 in production.
> **Livewire v3 is recently released!**<br />
> The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
## Installation

> If you are upgrading from Filament v2, please review the [upgrade guide](upgrade-guide).
Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

Install the Filament Panel Builder by running the following commands in your Laravel project directory:

```bash
Expand Down
16 changes: 2 additions & 14 deletions packages/panels/docs/14-upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@ title: Upgrading from v2.x

Please upgrade Filament before upgrading to Livewire v3. Instructions on how to upgrade Livewire can be found [here](https://livewire.laravel.com/docs/upgrading).

> **Livewire v3 is still in beta!**<br />
> Although breaking changes should be minimal, we recommend testing your application thoroughly before using Filament v3 in production.
> **Livewire v3 is recently released!**<br />
> The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
## Upgrading automatically

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

The easiest way to upgrade your app is to run the automated upgrade script. This script will automatically upgrade your application to the latest version of Filament and make changes to your code, which handles most breaking changes.

```bash
Expand All @@ -42,12 +36,6 @@ You can now `composer remove filament/upgrade` as you don't need it anymore.
## Upgrading manually

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

### High-impact changes

#### Panel provider instead of the config file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
evaluatePageScrollPosition: function () {
this.isSticky =
window.scrollY + window.innerHeight * 2 <=
document.body.scrollHeight
document.body.scrollHeight >= window.scrollY + window.innerHeight * 2
},
}"
x-init="evaluatePageScrollPosition"
Expand Down
2 changes: 0 additions & 2 deletions packages/support/src/SupportServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ public function packageRegistered(): void

public function packageBooted(): void
{
config()->set('livewire.inject_morph_markers', false);

FilamentAsset::register([
Js::make('async-alpine', __DIR__ . '/../dist/async-alpine.js'),
Css::make('support', __DIR__ . '/../dist/index.css'),
Expand Down
10 changes: 2 additions & 8 deletions packages/tables/docs/01-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ Filament requires the following to run:
- Laravel v10.0+
- Livewire v3.0+

> **Livewire v3 is still in beta!**<br />
> Although breaking changes should be minimal, we recommend testing your application thoroughly before using Filament v3 in production.
> **Livewire v3 is recently released!**<br />
> The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
## Installation

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

Require the Table Builder package using Composer:

```bash
Expand Down
18 changes: 3 additions & 15 deletions packages/tables/docs/13-upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@ title: Upgrading from v2.x

Please upgrade Filament before upgrading to Livewire v3. Instructions on how to upgrade Livewire can be found [here](https://livewire.laravel.com/docs/upgrading).

> **Livewire v3 is still in beta!**<br />
> Although breaking changes should be minimal, we recommend testing your application thoroughly before using Filament v3 in production.
> **Livewire v3 is recently released!**<br />
> The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
## Upgrading automatically

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

The easiest way to upgrade your app is to run the automated upgrade script. This script will automatically upgrade your application to the latest version of Filament, and make changes to your code which handle most breaking changes.

```bash
Expand All @@ -39,12 +33,6 @@ You can now `composer remove filament/upgrade` as you don't need it anymore.
## Upgrading manually

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

### High-impact changes

#### Config file renamed and combined with other Filament packages
Expand All @@ -62,7 +50,7 @@ The `TABLES_FILESYSTEM_DRIVER` .env variable has been renamed to `FILAMENT_FILES

#### New `@filamentScripts` and `@filamentStyles` Blade directives

The `@filamentScripts` and `@filamentStyles` Blade directives must be added to your Blade layout file/s. Since Livewire 3 no longer uses similar directives, you can replace `@livewireScripts` with `@filamentScripts` and `@livewireStyles` with `@filamentStyles`.
The `@filamentScripts` and `@filamentStyles` Blade directives must be added to your Blade layout file/s. Since Livewire v3 no longer uses similar directives, you can replace `@livewireScripts` with `@filamentScripts` and `@livewireStyles` with `@filamentStyles`.

#### CSS file removed

Expand Down
10 changes: 2 additions & 8 deletions packages/widgets/docs/01-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ Filament requires the following to run:
- Laravel v10.0+
- Livewire v3.0+

> **Livewire v3 is still in beta!**<br />
> Although breaking changes should be minimal, we recommend testing your application thoroughly before using Filament v3 in production.
> **Livewire v3 is recently released!**<br />
> The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
## Installation

Since Livewire v3 is still in beta, set the `minimum-stability` in your `composer.json` to `dev`:

```json
"minimum-stability": "dev",
```

Require the Widgets package using Composer:

```bash
Expand Down

0 comments on commit a3ab60e

Please sign in to comment.