All notable changes to the ES7+ React/Redux/React-Native snippets extension are documented here. This project adheres to Semantic Versioning and Keep a Changelog conventions.
First release under the r5n publisher (r5n.es-js-snippets) with full React 17–19 support and a new tooling stack.
- React 17–19 component snippets (no implicit
import Reactfor projects on the new JSX transform). - React Router v6 imports/snippets aligned with the current API.
- Redux Toolkit (
@reduxjs/toolkit) snippets, including RTK Query API slice scaffolds. - Search command keybinding documented up front (
Ctrl+Alt+R/⇧⌘R). - New
package,publish:vsce,publish:ovsxnpm scripts. @vscode/vsceandovsxadded asdevDependenciesfor reproducible packaging.- GitHub Actions release workflow with
workflow_dispatchand tag-push triggers, publishing to VS Code Marketplace and Open VSX. - Automatic GitHub Release creation with attached
.vsixartifact. - Prerelease handling (
-rc,-beta, etc.) flips--pre-releaseflag automatically. bugsandhomepagefields inpackage.json.
- Publisher migrated to
r5n. Thees7-react-js-snippetslisting remains as a deprecated redirect; new installs should user5n.es-js-snippets. - Repository URL corrected to
https://github.com/r5n/vscode-react-javascript-snippets. - Toolchain migrated from yarn → bun for installs, scripts, and CI.
- CI workflow rewritten on
oven-sh/setup-bun@v2+actions/checkout@v4; deprecatedactions/cache@v2and Node 16 are gone. - Linter and formatter migrated to oxc: replaced ESLint +
@typescript-eslint/*+ Prettier withoxlintandoxfmt. Lint runs in milliseconds; format remains Prettier-compatible. - TypeScript bumped to 5.7.
- Snippet generation no longer mutates the snippet source on settings reload (fixes stale snippets after switching
importReactOnTop/typescript). languageScopessetting is now validated; invalid scopes are dropped instead of silently breaking activation.- README rewritten with current configuration table, dev workflow on bun, and r5n maintenance notice.
tsrafcenow exports the component (regression from v4).useStateSnippetworks correctly when invoked through snippet search.activationEventscasing aligned with VS Code's expectations.
- ESLint,
@typescript-eslint/*, Prettier, and alleslint-plugin-*devDependencies (replaced by oxlint + oxfmt). - Babel/Jest ESLint plugins and
@babel/eslint-parser(unused — repo has no test suite or.jssource files). - Legacy
@babel/cli,@babel/preset-typescriptdevDependencies.
- Enable extension after startup finish to respect and parse snippets on settings change.
- BREAKING CHANGES:
- From now on snippets have options for Language, React 17+ support, typescript and more.
- Added experimental prettier support, for now it's kinda buggy and needs some work.
- Refactored the codebase, moved snippets to ts files.
- Add couple of snippets and React 17 components.
- Enable extension on workspaces (i.e. GitHub codespaces).
- Add few snippets for React-Native & Typescript.
- Add few snippets for react-router.
- Add
rnfs.
- Add
imrsandimrseto imports for functional components. Removedtsrafc.
- Change
cmmbto be more compliant with jsdocs.
- Use
\tinstead of hard space for indent.
- Set
"extensionKind": "ui"to support remote development.
- Add
rnffor React-Native functional component, use TS for extension.
- Added hooks snippets.
- Add search engine for snippets with
ES7 snippet searchcommand.
- Remove unnecessary bracket.
- Add
clo,ctmandctefor easier debugging.
- Add
rpce, remove unnecessary setups for tests.
- Add option for functional and anonymous functional components.
- Fix
rfcp, remove duplication onrfep, renamerncstyletorncs.
- Add
imrd.
- Use properly snippet variables, add
scrtest.
- Fix typo in
rcredux.
- Restore filename selection on components.
- Use filename when creating component.
- Add
imptfor PropTypes.
- Add
cp,csdestruct and react component testsctest.
- Add support for
tsandtsxextensions.
- Add
bnd.
- Add
gdsfp,gsbu,rcontext,cref,freffrom React 16.3, deprecations forcwup,cwm,cwr.
- Add
ptany, add PureComponent and styles for React-Native.
- Create
snrtest, fixsntest, little change forptypes.
- Add
ptypesfor static propTypes snippet.
- Add
rncreduxfor ReactNative component with Redux.
- GraphQL snippets for React Apollo.
- Add some export snippets.
- Add
sntestfor ReactNative components test.
- Fix
rfc/rfcpwith export default.
- Refactor to const arrow functions stateless components.
- Add stateless components & comment block.
- Refactor snippets, add hoc components.
- Add redux selector.
- Improve README readability.
- Add basic spec setup with global setup pattern.
- Add redux action, constant, reducer.
- Add components for React Native.
- Add specific imports for React and redux.
- Add additional React Components with export propTypes and React PureComponents.
- Add additional React Component with export at the end. Change
tdescintodesc.
- Add visual version, installs and rating.
- Update README, add proper keywords.
- Add logo.
- Add test snippets, update description.
- Specify React Components snippets, improve mapping
componentNamesand add static prop.
- Update README with basic knowledge of snippets.
- Console snippets.
- React components snippets.
- Import and functions snippets.
- PropTypes snippets.