Skip to content

Commit

Permalink
Merge pull request #2 from safakgur/release-v1
Browse files Browse the repository at this point in the history
Release v1.0.0
  • Loading branch information
safakgur authored Oct 19, 2024
2 parents bac5f11 + 306fb3f commit e3c3f17
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 11 deletions.
6 changes: 5 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ If you'd like to help with the implementation:
1. Open an issue to discuss your idea.
2. Once an approach is agreed upon, fork the repo.
3. Make the changes. Ensure the tests and documentation are updated.
4. Create a pull request.
4. Update [VERSION][version] according to [Semantic Versioning][semver] rules.
5. Create a pull request.

[version]: VERSION
[semver]: https://semver.org/
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Snowflakes
# Snowflakes ![Logo][logo]

[![NuGet](https://img.shields.io/nuget/v/Snowflakes.svg?style=flat)](https://www.nuget.org/packages/Snowflakes/)

**[Note that this project is still in very early development]**
[![CI][wf-ci-badge]][wf-ci]
[![NuGet][nuget-badge]][nuget]

Snowflake IDs, also known as snowflakes, are 64-bit, sortable identifiers generated in a distributed
system that provide uniqueness across time and space without requiring a central authority.
Expand Down Expand Up @@ -51,7 +50,7 @@ var snowflakeGen = new SnowflakeGeneratorBuilder()
long snowflake = snowflakeGen.NewSnowflake();
```

### Sony's Sonyflake
### Sonyflake (Sony's Implementation)

* 39-bit timestamp in units of 10 ms from a specified epoch
* 8-bit sequence number
Expand Down Expand Up @@ -205,6 +204,12 @@ var encodedSnowflake = encoder.Encode(snowflake); // "ddw3cbIG"
var decodedSnowflake = encoder.Decode(encodedSnowflake); // 139611368062976
```

[logo]: https://raw.githubusercontent.com/safakgur/snowflakes/main/media/logo-28.png "Logo"
[wf-ci]: https://github.com/safakgur/snowflakes/actions/workflows/ci.yml
[wf-ci-badge]: https://github.com/safakgur/snowflakes/actions/workflows/ci.yml/badge.svg?event=push
[nuget]: https://www.nuget.org/packages/Snowflakes/
[nuget-badge]: https://img.shields.io/nuget/v/Snowflakes.svg?style=flat

[twitter-announcement]: https://blog.twitter.com/2010/announcing-snowflake "Announcing Snowflake @ Twitter Engineering"
[sonyflake]: https://github.com/sony/sonyflake "Sonyflake"
[discord-snowflakes]: https://discord.com/developers/docs/reference#snowflakes
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0-beta4
1.0.0
Binary file added media/logo-28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/logo-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions media/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions src/Snowflakes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,16 @@
<RepositoryUrl>https://github.com/safakgur/snowflakes</RepositoryUrl>
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>logo-64.png</PackageIcon>
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageOutputPath>../artifacts/</PackageOutputPath>
<PackageTags>snowflake-id;snowflakes;distributed-id;distributed;id;identifier</PackageTags>
</PropertyGroup>

<ItemGroup>
<None Include="../README.md">
<Pack>True</Pack>
<PackagePath>/</PackagePath>
</None>
<None Include="../README.md" Visible="false" Pack="true" PackagePath="/" />
<None Include="../media/logo-64.png" Visible="false" Pack="true" PackagePath="/" />
</ItemGroup>

</Project>

0 comments on commit e3c3f17

Please sign in to comment.