standard_id 0.56.0 → 0.56.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d21b27586542e7f6f9bc312ace8fed7a75a8b75c4633e470232890b869f802f
4
- data.tar.gz: 46b0df7981fa6785cdbc86a0ea65e52bf30c6c293a6198671d43169dd82fb955
3
+ metadata.gz: 076ceacf137b604ea48f42f6955f7eb9786656cab0112adc5967f06d5b6a178b
4
+ data.tar.gz: cb179e91df123b9d5c996626a6af219b170faa1e458c6d185dc6ad597f32c044
5
5
  SHA512:
6
- metadata.gz: c54196984851c658850c910a1509ffbc4231911759a0f003d9f3915002459ca5d313a61643abdd43edeac85d332ef8bc1c4173d65e9ca3fe2f747f44aff93e14
7
- data.tar.gz: 44510185f41ecd77b81c1d44342e5e6b2e432c75232c91cd3347ddea25fa3115d370e05d0af2d54a878a2dbf38cc5888bd0bdb82de12d9d1888b9df60474c10a
6
+ metadata.gz: e8f41357e84dbe80520836d321dd3f65e1b81329fe50c34e5c005975612fb77a1bf3d919eb87289c6ddf3ba29f95a22bc84ac45c7d1c9815411ae3efcb6161ae
7
+ data.tar.gz: 7c9637e8e58f301576d8d5564843b19ae2d58599aa94427cf8ffd3985385badbdb5a9b2b2fe9052fa4ef3a55989b59c1362e5a95e39d933c1cd444062830f0c7
data/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.56.1] - 2026-10-27
11
+
12
+ ### Fixed
13
+
14
+ - **`credential.password.created` from the API email + password sign-up now carries a usable
15
+ credential chain.** `EmailPassword::Registration` created the `Credential` row with
16
+ `Credential.create!`, but `PasswordCredential`'s `has_one :credential, touch: true` had already
17
+ read (and cached) the association as `nil` in `after_create`. A subscriber walking
18
+ `event[:credential].credential.identifier.account` got `nil`; it now gets the account, with the
19
+ whole chain loaded in memory, so strict-loading hosts never load it lazily.
20
+ `Web::SignupForm` was unaffected (it builds the chain with nested attributes); it now has the
21
+ same regression spec.
22
+
10
23
  ## [0.56.0] - 2026-10-26
11
24
 
12
25
  ### Added
@@ -105,7 +105,13 @@ module StandardId
105
105
  account: account, value: email, signup_source: EmailPassword::SIGNUP_SOURCE
106
106
  )
107
107
  password_credential = StandardId::PasswordCredential.create!(login: email, password: password)
108
- StandardId::Credential.create!(identifier: identifier, credentialable: password_credential)
108
+ # Created through the association, not Credential.create!: the
109
+ # has_one's touch: true reads password_credential.credential in
110
+ # after_create, caching nil, so a subscriber walking
111
+ # credential.identifier.account would get nil. Going through the
112
+ # association leaves the whole chain loaded in memory, which also
113
+ # keeps strict-loading hosts from lazily loading identifier/account.
114
+ password_credential.create_credential!(identifier: identifier)
109
115
 
110
116
  StandardId::Events.publish(
111
117
  StandardId::Events::ACCOUNT_CREATED,
@@ -1,3 +1,3 @@
1
1
  module StandardId
2
- VERSION = "0.56.0"
2
+ VERSION = "0.56.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.56.0
4
+ version: 0.56.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaryl Sim