-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependency @snaplet/copycat to v0.18.1 #61
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/snaplet-copycat-0.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❌ Deploy Preview for rw-office-hours-og-images failed.
|
✅ Deploy Preview for rw-office-hours-algolia-autocomplete ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
❌ Deploy Preview for rw-office-hours-rest-directive failed.
|
❌ Deploy Preview for rw-office-hours-custom-auth failed.
|
❌ Deploy Preview for rw-office-hours-enum-select-list failed.
|
renovate
bot
force-pushed
the
renovate/snaplet-copycat-0.x
branch
from
December 20, 2022 16:25
fa7aa4e
to
49b89b5
Compare
renovate
bot
changed the title
Update dependency @snaplet/copycat to v0.13.0
Update dependency @snaplet/copycat to v0.13.2
Dec 20, 2022
renovate
bot
force-pushed
the
renovate/snaplet-copycat-0.x
branch
from
January 4, 2023 12:35
49b89b5
to
d2e6035
Compare
renovate
bot
changed the title
Update dependency @snaplet/copycat to v0.13.2
Update dependency @snaplet/copycat to v0.13.4
Jan 4, 2023
renovate
bot
changed the title
Update dependency @snaplet/copycat to v0.13.4
Update dependency @snaplet/copycat to v0.14.0
Jun 15, 2023
renovate
bot
force-pushed
the
renovate/snaplet-copycat-0.x
branch
from
June 15, 2023 17:51
d2e6035
to
3037f8b
Compare
renovate
bot
changed the title
Update dependency @snaplet/copycat to v0.14.0
Update dependency @snaplet/copycat to v0.15.1
Jul 12, 2023
renovate
bot
force-pushed
the
renovate/snaplet-copycat-0.x
branch
from
July 12, 2023 13:43
3037f8b
to
ad3f53a
Compare
renovate
bot
changed the title
Update dependency @snaplet/copycat to v0.15.1
Update dependency @snaplet/copycat to v0.15.1 - autoclosed
Jul 14, 2023
renovate
bot
changed the title
Update dependency @snaplet/copycat to v0.15.1 - autoclosed
Update dependency @snaplet/copycat to v0.15.1
Jul 15, 2023
renovate
bot
changed the title
Update dependency @snaplet/copycat to v0.15.1
Update dependency @snaplet/copycat to v0.16.0
Aug 7, 2023
renovate
bot
force-pushed
the
renovate/snaplet-copycat-0.x
branch
from
August 7, 2023 13:48
ad3f53a
to
b1ef779
Compare
renovate
bot
force-pushed
the
renovate/snaplet-copycat-0.x
branch
from
September 13, 2023 12:39
b1ef779
to
c286b36
Compare
renovate
bot
changed the title
Update dependency @snaplet/copycat to v0.16.0
Update dependency @snaplet/copycat to v0.17.0
Sep 13, 2023
renovate
bot
force-pushed
the
renovate/snaplet-copycat-0.x
branch
from
September 13, 2023 20:00
c286b36
to
a279a6b
Compare
renovate
bot
changed the title
Update dependency @snaplet/copycat to v0.17.0
Update dependency @snaplet/copycat to v0.17.1
Sep 13, 2023
renovate
bot
force-pushed
the
renovate/snaplet-copycat-0.x
branch
from
September 20, 2023 11:12
a279a6b
to
8ff1f9c
Compare
renovate
bot
changed the title
Update dependency @snaplet/copycat to v0.17.1
Update dependency @snaplet/copycat to v0.17.2
Sep 20, 2023
renovate
bot
force-pushed
the
renovate/snaplet-copycat-0.x
branch
from
September 20, 2023 17:02
8ff1f9c
to
1340d5d
Compare
renovate
bot
changed the title
Update dependency @snaplet/copycat to v0.17.2
Update dependency @snaplet/copycat to v0.17.3
Sep 20, 2023
renovate
bot
force-pushed
the
renovate/snaplet-copycat-0.x
branch
from
October 31, 2023 10:00
1340d5d
to
b850ace
Compare
renovate
bot
changed the title
Update dependency @snaplet/copycat to v0.17.3
Update dependency @snaplet/copycat to v0.18.1
Oct 31, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.13.4
->^0.18.0
^0.12.0
->^0.18.0
0.12.1
->0.18.1
Release Notes
snaplet/copycat (@snaplet/copycat)
v0.18.1
Compare Source
⚠ BREAKING CHANGES
Performance improvements
In order to always return the same output for the same input, copycat works by hashing the given input value to a number, and then using the resulting number to compute the output value. Under the hood, we use SipHash to do this (more context here).
Sometimes though, we need a sequence of numbers to compute an output, rather than a single number. A good example of this is
copycat.scramble()
, where we need a sequence of numbers, one for each character in the input. In these cases, we were using SipHash to compute the initial hash, and then for each number in the sequence, use the faster fnv1a to re-hash the current hash value to obtain the next number in the sequence in a deterministic way.However, the tool we're looking for in this case is a seeded deterministic pseudo-random number generator (PRNG). In turns out there are much faster algorithms for accomplishing this than using fnv1a, which is really more a hash function than a PRNG. After experimenting a bit, we settled on using splitmix.
What does this mean for me?
This sequencing functionality described above is a core part of copycat. Any method relying on this sequencing functionality (transitively via other copycat methods or directly) would be impacted. In the case of large outputs, you might see computation time performance improvements (benchmarks for
copycat.scramble()
below).However, it also means that for all the affected methods, the same input value would now map to an entirely different output value (since we changed the underlying function we were using for computing a sequence of numbers for a given hash value). That said, the same input value will still map to that same output value, it is just that the output value is different to what it was in previous releases. In other words, copycat is still deterministic, it is just that this release came with a change to the mapping from inputs to outputs.
Benchmark results for
copycat.scramble()
More context here: https://github.com/snaplet/copycat/pull/45
Lorem ipsum
copycat.word()
and other word methods (@copycat.words()
,@copycat.paragraph()
and@copycat.sentence()
) changed from generating text like this:To text like this:
Context
The idea behind the way we used to generate words, was to use Japanese-like syllables for simplicity, since they compose easily (any syllable can follow any other).
It would be more ideal though to use something more standard and expected, such as "lorem ipsum" placeholder text. It is also arguably a better representation of fake text that is meant to be read (e.g. on a web page) - since we generate words with latin characters. Latin words are naturally more representative of where these characters would be seen. In contrast, the previous fake text is not - it is closer to resembling a romanized form of text from a language not written with latin characters, and so it is probably less representative of what would appear as text meant to be read (e.g. on a web page).
More context here: https://github.com/snaplet/copycat/pull/46
v0.18.0
Compare Source
v0.17.3
Compare Source
v0.17.2
Compare Source
v0.17.1
Compare Source
v0.17.0
Compare Source
v0.16.0
Compare Source
v0.15.1
Compare Source
v0.15.0
Compare Source
v0.14.0
Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.