• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sebnitu / vrembem / 11061120079
94%
main: 100%

Build:
Build:
LAST BUILD BRANCH: next
DEFAULT BRANCH: main
Ran 26 Sep 2024 10:22PM UTC
Jobs 1
Files 58
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Sep 2024 10:20PM UTC coverage: 100.0%. Remained the same
11061120079

push

github

web-flow
Create new CollectionEntry class and add lifecycle hooks to Collections API (#2046)

## What changed?

The primary goal of this PR is to introduce the new `CollectionEntry` class used as the prototype of collection entries. This also introduces some new Collection API lifecycle hooks for both the root component (extended from Collection) and entries (extended from CollectionEntry).

**New API**

- `applySettings()` (collection and entry) method that allows passing a configuration object to settings.
- `createEntry()` (collection) method that returns an instantiation of the `CollectionEntry` class.

### Lifecycle Hooks

Lifecycle hooks are applied using a new helper `lifecycleHooks` and is applied to mount/unmount and register/deregister actions. The following are the lifecycle hooks and the order that they are called:

**On Mount:**

- `beforeMount`
- `entry.mount`
  - `entry.beforeMount`
  - `entry.afterMount`
- `beforeRegister`
- `entry.beforeRegister`
- Entry is added to collection.
- `entry.afterRegister`
- `afterRegister`
- `afterMount`

**On Unmount:**

- `beforeUnmount`
- `entry.unmount`
  - `entry.beforeUnmount`
  - `entry.afterUnmount`
- `beforeDeregister`
- `entry.beforeDeregister`
- Entry is removed from collection.
- `entry.afterDeregister`
- `afterDeregister`
- `afterUnmount`

### Additional changes

- Core modules have been refactored and organized in a more logic way (utilities, helpers, etc).
- Removed `registerCollection`
- Removed `deregisterCollection`
- `getCustomProps` now takes a collection entry as an argument.
- `getElement` now returns null in final case.
- `transition` no longer handles custom property fetching and instead requires some number value as the duration argument.
- Added `toMilliseconds` which converts a string or number to milliseconds if possible. 
- Renamed `updateGlobalState` to `setGlobalState`.
- All three component settings have been changed in the following ... (continued)

596 of 596 branches covered (100.0%)

Branch coverage included in aggregate %.

880 of 880 new or added lines in 29 files covered. (100.0%)

2486 of 2486 relevant lines covered (100.0%)

99.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11061120079.1 26 Sep 2024 10:22PM UTC 0
100.0
GitHub Action Run
Source Files on build 11061120079
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11061120079
  • e137d838 on github
  • Prev Build on next (#11026607530)
  • Next Build on next (#11061722600)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc