Skip to content

Conversation

@megothss
Copy link
Contributor

@megothss megothss commented Dec 1, 2025

Refactor post-stream.js to eliminate deprecated array methods, enhancing code stability and maintainability. The changes include replacing set with tracked properties and utilizing addUniqueValuesToArray for managing the content array.

…ream.js`

Update the `PostStream` class to replace the deprecated `@reads` decorator with `@dependentKeyCompat` for the `lastPostCreatedAt` computed property. This change ensures compatibility with future Ember versions and maintains the expected behavior of the property. The `noContent` computed property was also updated to use `@dependentKeyCompat`. This refactor enhances code stability and prepares the codebase for upcoming Ember updates.
@megothss megothss force-pushed the dev/remove-last-ember-array-methods branch from 12caeea to cb0a286 Compare December 1, 2025 20:07
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
@megothss megothss merged commit c7f5f1a into main Dec 2, 2025
6 checks passed
@megothss megothss deleted the dev/remove-last-ember-array-methods branch December 2, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants