You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,27 @@
1
+
## [3.0.0] - 2026-02-06
2
+
3
+
### Added
4
+
-`LaravelNotifyFcmNotInitializedException` custom exception for clearer error handling when the package is not initialized.
5
+
- New test suite with unit, integration, API service, and interceptor tests.
6
+
- Proper type annotations on `apiServiceFcm` return type and interceptors getter.
7
+
8
+
### Changed
9
+
-**BREAKING**: `init()` no longer requires a `firebaseMessaging` parameter. The package no longer manages `FirebaseMessaging` internally -- consumers must manage Firebase directly.
10
+
-**BREAKING**: `storeFcmDevice()` now requires `fcmToken` as a positional parameter and returns `Future<bool?>` instead of `Future<NotificationSettings?>`.
11
+
-**BREAKING**: `enableFcmDevice()` and `disableFcmDevice()` now require `fcmToken` as a positional parameter and `sanctumToken` as a named parameter.
12
+
-**BREAKING**: Sanctum token is now passed per-call instead of being stored as instance state. Removed `getSanctumToken()` and `setSanctumToken()` methods.
13
+
- Authentication header (`Authorization: Bearer`) is now set at the API request level instead of via the interceptor.
14
+
- Interceptor now gracefully handles uninitialized state instead of throwing.
15
+
- Upgraded `nylo_support` to ^7.0.0, `device_meta` to ^3.0.0, `dio` to ^5.9.0.
16
+
17
+
### Removed
18
+
-**BREAKING**: `firebase_messaging` direct dependency. Consumers must add `firebase_messaging` to their own `pubspec.yaml` and pass the FCM token to this package.
19
+
-**BREAKING**: `getFirebaseMessaging()` method.
20
+
-**BREAKING**: `getFcmToken()` static method.
21
+
-**BREAKING**: `getSanctumToken()` and `setSanctumToken()` methods.
22
+
- CLI scaffolding system (`bin/main.dart`, `lib/cli_dialog/`, `lib/stubs/`, `lib/slate_laravel_notify_fcm.dart`, `lib/models/`).
23
+
-`pretty_dio_logger` dependency.
24
+
1
25
## [2.1.5] - 2025-12-17
2
26
3
27
* Add extra check to `getFcmToken` method to ensure token is not null
0 commit comments