Skip to content

Commit

Permalink
feat: Upgrade to hooks and Preact
Browse files Browse the repository at this point in the history
BREAKING CHANGES: Higher-order components are now fully replaced with hooks.

The library is now written in `TypeScript`, with exported types and generated `typedoc` documentation.
The `Nevo` (`name`, `error`, `value`, `on*` callbacks) pattern is enforced by the `NevoProps` type.

This package focuses on managing prop values, relying on external dependencies for handling other cases:
- immutability is done through the `unchangeable` dependency,
- promise-based tools are provided by the `futurise` dependency,
- query-specific tools are handled by the `quetch` dependency,
- layout components are provided by the `reflexion` dependency.
  • Loading branch information
davidbonnet authored Mar 15, 2024
1 parent ea171cf commit 3e2a473
Show file tree
Hide file tree
Showing 167 changed files with 13,348 additions and 20,407 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
45 changes: 0 additions & 45 deletions .github/dependabot.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/dependencies.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/dependencies.yml

This file was deleted.

29 changes: 23 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
*.DS_Store
*.sublime-workspace
.cache
.DS_Store
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
.nyc_output
coverage

# Dependencies
.cache
node_modules
dist
lib
node_modules
dist-ssr
*.local

# Editor directories and files
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
4 changes: 0 additions & 4 deletions .nova/Configuration.json

This file was deleted.

17 changes: 0 additions & 17 deletions .npmignore

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
18
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": ["esbenp.prettier-vscode"],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.experimental.useFlatConfig": true,
"eslint.lintTask.enable": true,
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"vitest.commandLine": "npx vitest --update",
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
"typescript.tsdk": "node_modules/typescript/lib"
}
Loading

0 comments on commit 3e2a473

Please sign in to comment.