Releases: itsbrunodev/snipnest
v2.7.0
Snippets
- Added the useFetch and useClickOutside React Hook snippets by @manjushsh in #6
- Added the Is Palindrome Javascript Math snippet by @iarpitsaxena in #8
- Added the Add Item to localStorage, Check if Item Exists in localStorage and Retrieve Item from localStorage Javascript Web Storage snippets by @ditinagrawal in #7
- Added the useDimensions React Hook snippet by @manjushsh in #11
- Added the Add Item to IndexedDB, Check if Item Exists in IndexedDB, Retrieve Item from IndexedDB, Delete Item from IndexedDB and Delete Item from localStorage Javascript Web Storage snippets
- Added the useForm React Hook snippet by @manjushsh in #12
- Added the Password Regex Other snippet by @jhokam in #13
- Added the Localhost URL Regex Network snippet by @jhokam in #15
- Added the Is Anagram Javascript Math snippet by @iarpitsaxena in #14
- Updated the Find Duplicates in Array Python Array snippet (added a semicolon after the metadata object)
- Updated the useViewportSize React Hook snippet (changed the function name)
- Updated the Capitalize Words Javascript String snippet (mentioned title casing)
- Updated several React Hoook snippets to include imports
Other
- Added a banner to the README.md file
- Updated
next
package from15.1.3
to15.1.6
New Contributors
- @manjushsh made their first contribution in #6
- @iarpitsaxena made their first contribution in #8
- @jhokam made their first contribution in #13
Full Changelog: 2.6.0...2.7.0
v2.6.0 - Features Section
First of all, a big thank you to everyone who has contributed to and starred the repository! 😊
Features Section
Upon visiting the landing page and scrolling down, you can now find an awesome-looking features section.
Snippets
- Added the Factorial Python Math snippet by @msranjana in #2
- Added the Random Hex Color Javascript Color snippet by @ditinagrawal in #5
- Added the Random Element GDScript Dictionary snippet by @sebkolind in #3
UI
- Added a badge to notify users about notable new features in the hero section
- Updated the keywords section on the snippet's page to be a button to edit the snippet on github
- Added a features section
Other
- Removed @vercel/analytics and use umami instead
- Updated CONTRIBUTING.md to make the guidelines clearer
- Extensions constant is now in its own file
New Contributors
- @msranjana made their first contribution in #2
- @ditinagrawal made their first contribution in #5
- @sebkolind made their first contribution in #3
Full Changelog: 2.5.0...2.6.0
v2.5.0 - SnipNest CLI
SnipNest CLI (beta)
We've finally released the SnipNest CLI, with which you can easily submit new snippets to SnipNest.
You can see the available commands by running pnpm snipnest -h
.
The documentation in the CONTRIBUTING.md file is not yet available and will be available in a later version.
Note
The CLI is still in beta and is subject to change, but you're definitely welcome to try it out and use it to submit your own snippets easily without having to manually create the files.
Snippets
- Added the Find Duplicates in Array and Flatten Nested Array Python Array snippets
- Added the Sort Dictionary by Value Python Dictionary snippet
- Added the useIntersectionObserver, useIsMounted, useLocalStorage and useViewportSize React Hook snippets
Fixes
- Handle edge cases in snippet content parsing
Other
- Removed the requirement for minimum of 2 code blocks in a snippet
Full Changelog: 2.4.0...2.5.0
v2.4.0 - Visual Studio Code extension
Extensions
- Released the Visual Studio Code extension, click here to get it from the marketplace
UI
- Added slight shadows to code blocks, snippet keyword badges, snippet list i.e. the sidebar, navbar and hero code preview components
- Breadcrumbs now use the correct component for the last element
SEO
- Created a robots.txt file
- Added a canonical url to the landing page's metadata
- Added contributors as authors, canonical url and open graph type set to article for snippet page
API
- Responses now use their proper content-type in the response header
- Optimized API endpoints to use static rendering except search
Other
- Snippet file names no longer include it's category name
- Updated README.md and made it a bit prettier
- Updated CONTRIBUTING.md and made it a bit prettier
- Created an API error utility function
- Created a CODE_OF_CONDUCT.md file
Full Changelog: 2.3.0...2.4.0
v2.3.0
Snippets
- Added the MD5 Hash and SHA-256 Hash Regex Hash snippets
- Added the Domain Name, IPv4 Address, IPv6 Address, MAC Address and URL Regex Network snippets
- Added the Email, Hex Color and HTML Tag Regex Other snippets
- Added the UUID Regex Unique Identifier snippet
- Added the useDebouncedValue React Hook snippet
UI
- Fixed an issue where the snippet page content would overflow the maximum width allowed
Other
- Updated the minimum threshold for scores in search results to 0.5
- Renamed constants.ts to languages.ts for clarity
- Updated imports to point to languages.ts
- Updated the metadata regex to support multiple types of quotation marks (" and ')
- Updated CONTRIBUTING.md's new language section
Full Changelog: 2.2.0...2.3.0
v2.2.0
Snippets
- Added the Random Number Python Number snippet
- Added the Truncate JavaScript String snippet
- Added the Fibonacci Squence and Is Prime Python Math snippets
- Added the Filter Python Array snippet
UI
- The snippet preview on the landing page no longer uses the typescript syntax highlighter, instead it uses the snippet's language
- Snippets now show the full language name instead of the abbreviation (e.g. js is now javascript)
- The scrollbar is now hidden if no content is overflowing
SEO
- Updated the title property in the metadata
Other
- Moved the GithubIcon and LanguageIcon component to the icons folder
- Added the Python programming language
- Updated CONTRIBUTING.md's code block previews to use full language names
Full Changelog: 2.1.0...2.2.0
v2.1.0
Snippets
- Added the Random Element JavaScript Array snippet
- Added the RGB to HEX and Shade Color JavaScript Array snippets
- Removed the TypeScript Color category
- Added the Fibonacci Sequence JavaScript Math snippet
- Added the Capitalize Words and Is Palindrome JavaScript String snippets
- Added the Factorial and GCD Rust Math snippets
UI
- Fixed mobile style issues in the hero component
- Sort language categories in alphabetical order
- Updated the Submit a Snippet button's href in the hero component
Other
- Added the Rust programming language
- Added the isColored property to constants.ts for the handling of all black icons
Full Changelog: 2.0.0...2.1.0
v2.0.0
🎉 SnipNest v2.0
This release introduces one breaking change in the API, improves the UI with better code organization, style fixes and improved functionality of snippet handling.
Breaking Changes
- The snippet API route no longer returns the content of a snippet
New Features
- Added a new API route that returns only the content of a snippet
- Added a new API route that returns the list of available programming languages
Enhancements
- Added a new function to format paths
- Snippet names under JavaScript/Array have been clarified for better understanding and organization
- Improved the landing page, moved the large part of it to a separate Hero component for better organization
- Fixed various styling issues
Fixes
- Fixed a bug in the getSnippet function's regex to improve accuracy
- Removed an unused variable from the grouped-snippets component for cleaner code
Documentation
- Updated the API Documentation to reflect the changes in API routes
v1.1.0
UI
- A new design for the landing page which now shows a random snippet
SEO
- Added open graph tags to the site metadata
Other
- Made the readme's "running locally" section clearer
Full Changelog: 1.0.1...1.1.0
v1.0.1
UI
- Bottom drawer will now become hidden when the search button is clicked on mobile
SEO
- Added a banner and theme color to site metadata (this is visible in embeds e.g. on Discord)
Other
- This project is now under the MIT license
Full Changelog: 1.0.0...1.0.1