Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/pmndrs/rafz

💍 One loop to frame them all.
https://github.com/pmndrs/rafz

Update README.md

aa11aa0c7a61aa3a47602095039a4fc73da9451b authored over 3 years ago by Josh <37798644+joshuaellis@users.noreply.github.com>
Merge pull request #10 from pmndrs/feat/add-frameLoop-control

Feat/add frame loop control

a8b23b7033e86d5967e61afdf071dc7da1fa022f authored over 3 years ago by Josh <37798644+joshuaellis@users.noreply.github.com>
chore: bump version

9de1bce8e90914c3743f14e18087ff45bceebc5b authored over 3 years ago by Josh <37798644+joshuaellis@users.noreply.github.com>
chore: remove mention of r3f in used by

124a167579ef5c831a9108ef15710d5caf52277d authored over 3 years ago by Josh <37798644+joshuaellis@users.noreply.github.com>
feat: add frameloop control

similar to r3f, helps resolve react-spring/issue/1518

95f9ffb184159b94f27502688f5f63081829fc52 authored over 3 years ago by Josh <37798644+joshuaellis@users.noreply.github.com>
chore: update deps

change to yarn too

ee42bfed84e5eb852f5aaaadd2065a98f90066f8 authored over 3 years ago by Josh <37798644+joshuaellis@users.noreply.github.com>
chore: update license to incl everyone cause we're chill

536cbccb6f81b388d7693c0bef21a78c08a069bd authored over 3 years ago by Josh <37798644+joshuaellis@users.noreply.github.com>
0.1.14

06a099cea77c7dc93fb8cef9c09e1124894612f1 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
feat: let `raf.cancel` work with `raf.write` callbacks

44fa6242b5040138229102e6448ea005be8ed39b authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.13

8ad4992bf6760ed20447f36f7797397594df382b authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
docs: remove note about recursive calls

4c474ab8db17b0df17b12c4192fb0412c698ff45 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
feat: add `__raf` export for testing purposes

This replaces `raf.clear` with `__raf.clear` and `raf.idle` with `__raf.count == 0`
since both a...

d271984a9d7741bc20c071afaa159420989e5e6f authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
feat: allow nested `raf` calls

and remove `raf.idle` for now

27ac543c2dc624913ea0b343ae33e57c1590e446 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
docs: remove testing methods

69fd7c697dc1980d15790317cb34f63b82b0ad8a authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.12

280388e3e2ecd08262dfe57c7bba038e9a36ceed authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
fix: `raf.throttle` inside `raf.sync` callback

2d5c5ce2d20890119a782d536f67cfe74f7f3b76 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
docs: fix typo

6bf4e95cb337192cdb007b30b3695d237da25848 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.11

4797ee036f9c4a8f63fb2ebc12fb5ec1d591c543 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
docs: update min+gzip size

b7d64fc4f4fa3535097a686bf4cb5cb9052df62f authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
fix(throttle): stop leaking `arguments` object

The V8 optimizer doesn't like that:
https://github.com/petkaantonov/bluebird/wiki/Optimization-k...

3055af586d90b1dc03da977c9051f1006792ddd6 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
feat(types): export `Throttled` type

3da4932c24cbf6585b99ab23591149a5b65e22cd authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
fix(types): complain when function with non-void return is passed to `raf.throttle`

f39df5d60dc73cc633444a2084bf5af22b4b775d authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
fix(throttle): clear the args cache after throttled call

afc5e26368ed135120cab4aafb02891e40e7a235 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
feat: add `raf.throttle`

d9930b11f54d9693b1122f2e7c975988bfe163d1 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
docs: add `raf.throttle`

d8dc0a2cfacfafe723328facc48873c287ae0823 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.10

0334c56f70dff828a8b5e7c89f3084b7ec3bd976 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
chore: update lockfile

4e2e5010cc411cceec79119d032d105bfd4d7bf3 authored about 4 years ago by pnpm <https://pnpm.js.org>
chore: remove rollup-plugin-bundle-size

54aeebd0c9671412e0b837846b190939b59e5c9d authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
chore: upgrade esbuild

df2e7f6069569197e3dc69ca0df7d7586f10a830 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.9

4c7c1de499b5f87d46120fce9cfb4c04814da119 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
fix: use 16.667 for default elapsed

To align with the default interval of @react-spring/mock-raf.

f1cb3f2f43093bc3e43f84dc79528cf4eac99d83 authored about 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.8

5a489b6c38ebd71835505af672ffe001abf027cb authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
fix: use `batchedUpdates` in `raf.sync`

Scheduled functions expect to be wrapped with batchedUpdates,
so we need to use batchedUpdates w...

f6056b4eaeef67f26f1707aedf37e6dd36d83be6 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.7

db788cc82a43be9676dd7bda080a5dcecba9e66c authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
fix: avoid dereferencing `performance.now`

Otherwise an "Illegal invocation" error is thrown

c6a7f658bc72c2e3a17b5c19aa529982940d919c authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
docs: add react-three-fiber to "Used by" section

1428c166816df13a105d80a3b57f5b5275b5916b authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
docs: define what "reading" is by linking to Paul Irish gist

a0e419d08c6ab76df67acc8fd8cc43c3b9322bf7 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
docs: add "Notes" section

8c6f165daa97bf50ce1b6fcdb30155f9e252d7d5 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.6

b86466ff7f638ede0ca6d0c685b5ca0b8bebcce6 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
fix(types): ensure `raf.use` accepts `window.requestAnimationFrame`

77c0b84c00425ab4dea9be891edb0acbdcbc085e authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.5

f67694627e8ce7c9170fcb6ec79e705ead33e7fd authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
fix: dequeue functions called within `raf.sync`

To ensure they're not accidentally called twice in a frame

f78da330def2c2797950beaccebaa744d605e48b authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.4

ea92ac63b0a9dad3ca1587f0c18bd05da4c8e8f9 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
docs: update readme

bb8095a5d895777833ae302d4f35a11d597a845d authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
feat: add `raf.sync` as an escape hatch

5d866d665c19b75ed2be2ef9e4562db3f8e0d5bb authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.3

3bcc8f15bc8b6299e15aecd985daaf6b1096c470 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
fix(types): ensure method descriptions are published

and reorganize a little bit

86fb8d24bc23354e3a8516de321bf253869f5be8 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.2

af6204c6517bb264ef359fa4e8b9e7a519a81288 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
feat: recursive calls are synchronous

For example, if you call `raf` within a `raf` callback,
it will be called immediately, rather th...

4a3e3a1effa32a8eb2424997568e5bb3417ba3f7 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
chore: revert `eachSafely` back to function declaration

To lose 1 byte with gzip

16fbf10aa8ef5c100393d69a7660f4a0619b81d5 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
chore: remove local `clear` function

Turns out we get better gzip without it

c681a42f9e817c132f4568c6d9c20627b4fc5868 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.1

bdefa400103eaf7587734395f6a00bcd8f83db59 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
feat: avoid scheduling the same function twice

By changing the queues from arrays to sets, users can schedule a function
without worrying if th...

acb548b155dacf0b645fc15e187232164dcb53d8 authored over 4 years ago by Alec Larson <1925840+aleclarson@users.noreply.github.com>
0.1.0

d81200a558b2469021b031f7d672ecbf9620e811 authored over 4 years ago by aleclarson <alec.stanford.larson@gmail.com>