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
Update test class names and assertions in upsert and product tests
Renames test classes and references in upsert_methods_integration_test.rb to use UpsertTestUser and UpsertTestProduct for clarity and isolation. Updates a test assertion in mongodb_operators_integration_test.rb to expect 3 products ending with 'Pro' instead of 2. Also renames the test class in product_test.rb to ProductModelTest. Updates CHANGELOG.md to fix a version section ordering issue and clarify improvements.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+37-43Lines changed: 37 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,22 @@
10
10
11
11
-**IMPROVED**: CI now tests against Ruby 3.1, 3.2, 3.3, and 3.4.
12
12
13
-
### 3.2.3
13
+
### 3.2.2
14
14
15
15
#### Improvements
16
16
17
+
-**IMPROVED**: `latest` and `last_updated` methods now support a `limit:` option when passing constraints. This allows fetching multiple recent records while also filtering by query conditions.
18
+
19
+
```ruby
20
+
# Class methods
21
+
Song.latest(:user.eq => user, limit:5) # 5 most recent for user
22
+
Song.last_updated(status:"active", limit:10) # 10 most recently updated active
23
+
24
+
# Query instance methods
25
+
query.latest(:user.eq => x, limit:5)
26
+
query.where(genre:"rock").last_updated(limit:3)
27
+
```
28
+
17
29
-**IMPROVED**: `PointerCollectionProxy#as_json` now supports the `pointers_only` option. By default it returns pointers (preserving backward compatibility), but you can set `pointers_only: false` to serialize objects with their fetched fields. This is useful when returning `has_many :through => :array` relationships in webhook responses.
-**IMPROVED**: `latest` and `last_updated` methods now support a `limit:` option when passing constraints. This allows fetching multiple recent records while also filtering by query conditions.
67
-
68
-
```ruby
69
-
# Class methods
70
-
Song.latest(:user.eq => user, limit:5) # 5 most recent for user
71
-
Song.last_updated(status:"active", limit:10) # 10 most recently updated active
-**FIXED**: Corrected `or_where` behavior in query operations
3683
3679
-**CHANGED**: Request idempotency is now enabled by default for improved reliability
3684
3680
3685
-
### 2.0.0 - Major Release 🚀
3681
+
### 2.0.0 - Major Release
3686
3682
3687
3683
**BREAKING CHANGES:**
3688
3684
- This major version represents a complete transformation of Parse Stack with extensive new functionality
3689
3685
- Moved from primarily mock-based testing to comprehensive integration testing with real Parse Server
3690
3686
- Enhanced change tracking may affect existing webhook implementations
3691
3687
- Transaction support changes object persistence patterns
3692
-
-**Minimum Ruby version is now 3.2+** (dropped support for Ruby < 3.2)
3688
+
-**Minimum Ruby version is now 3.0+** (dropped support for Ruby < 3.0)
3693
3689
-**`distinct` method now returns object IDs directly by default** for pointer fields instead of full pointer hash objects like `{"__type"=>"Pointer", "className"=>"Team", "objectId"=>"abc123"}`. Use `distinct(field, return_pointers: true)` to get Parse::Pointer objects.
3694
3690
-**Updated to Faraday 2.x** and removed `faraday_middleware` dependency
3695
3691
-**Fixed typo "constaint" to "constraint"** throughout codebase (method names may have changed)
0 commit comments