Skip to content

Releases: nextdeveloper-nl/events

v1.2.26

Choose a tag to compare

@ikhalilatteib ikhalilatteib released this 04 Sep 11:02
325927f

What's Changed

Full Changelog: v1.2.25...v1.2.26

v1.2.24

Choose a tag to compare

@ikhalilatteib ikhalilatteib released this 04 Sep 06:03
40fccc3

What's Changed

Full Changelog: v1.2.23...v1.2.24

v1.1.9: Merge pull request #17 from nextdeveloper-nl/dev

Choose a tag to compare

@yakari007 yakari007 released this 01 Jun 12:35
7d86d63
  • Replaces get_class($this->model) with \NextDeveloper\Commons\Helpers\ObjectHelper::getPublicObjectName($this->model) so object_type in the NATS payload uses the short public form (e.g. NextDeveloper\IAAS\VirtualMachines) instead of the full internal model path

feat: NATS real-time event system with auth callout, mTLS and model publishing

Choose a tag to compare

@yakari007 yakari007 released this 28 May 19:15
ae60fb8
  • Auth callout service: NatsAuthCalloutService validates every NATS connection via $SYS.REQ.USER.AUTH. Agents authenticated via events_token (compute/storage/network), browser clients via OAuth tokens. Returns NKey-signed two-layer JWTs with scoped pub/sub permissions.
  • NkeyHelper: Ed25519 NKey encoding, JWT signing, and base32 utilities — no external NKey library dependency.
  • Platform mTLS: NatsService and NatsAuthListenerCommand both present NATS_TLS_CERT/NATS_TLS_KEY client certificates for mTLS on port 4222.
  • Auth listener: NatsAuthListenerCommand uses subscribeQueue (queue group nats-auth-callout) so multiple container instances share load without duplicate responses. Reconnects automatically on connection drop.
  • Model event publishing: Events::fire() auto-dispatches NatsPublisherJob when NATS is enabled. Job resolves Fractal transformer from model class name, transforms the model, publishes to client.{account_uuid}.evt.
  • Multi-account subscriptions: OAuth clients get client.{uuid}.evt for every account in iam_account_user — account switching doesn't require reconnect.
  • NatsService: Connects as auth-service (bypasses callout) for platform publish access.

Checking the event if exists first

Choose a tag to compare

@yakari007 yakari007 released this 19 May 15:24
d4f4b6f

Check class_exists() before dispatching — if the callback class is not loaded in the current project, log a warning and skip instead of throwing. Also removed the unused new $job($model) instantiation (dead code) and widened the catch to \Throwable so PHP Errors are also caught.

docs: Add library listing and community links to README

Choose a tag to compare

@yakari007 yakari007 released this 19 May 14:27
353c64c

Pass parameters to job dispatch method in event handling

Choose a tag to compare

@yakari007 yakari007 released this 19 Sep 07:28
a1995d3

Pass parameters to job dispatch method in event handling

Events now has parameters

Choose a tag to compare

@yakari007 yakari007 released this 18 Sep 08:07
0b7e24e

Events now has parameters

Initial production release

Choose a tag to compare

@yakari007 yakari007 released this 17 Jan 08:39
3608a4d

Initial production release

Now we can fire multiple events at the same time

Choose a tag to compare

@yakari007 yakari007 released this 08 Dec 00:32
3608a4d
  • Try catch added to events
  • Now we can fire multiple events at the same time