Skip to content
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

Version 1.12.0 #169

Open
wants to merge 68 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
69e8eb1
fix: CLI test file generation
sebastianwessel Mar 1, 2024
67622ee
chore: improve build workflow
sebastianwessel Mar 2, 2024
01fb454
fix: schema in hono server example
sebastianwessel Mar 2, 2024
61ccf65
fix: integration test in k8s package
sebastianwessel Mar 2, 2024
bbfd593
chore: cleanup vitest configs and include integration tests in coverage
sebastianwessel Mar 2, 2024
096f090
feat: add export of service definitions
sebastianwessel Mar 2, 2024
ab6a311
feat: allow services and subscriptions to be marked as deprecated
sebastianwessel Mar 3, 2024
0c3a45c
chore: update git url to puristajs
sebastianwessel Mar 10, 2024
0291b26
doc: fix temporal example
sebastianwessel Mar 10, 2024
f79c629
feat: Add definition export and client builder
sebastianwessel Mar 10, 2024
a8aac29
doc: improve documentation
sebastianwessel Mar 10, 2024
1065262
chore: minor fix root package name
sebastianwessel Mar 10, 2024
10f2410
chore: fix import
sebastianwessel Mar 16, 2024
ec99abb
doc: improve example
sebastianwessel Mar 16, 2024
3b3a93e
doc: fix import in example
sebastianwessel Mar 16, 2024
0cb25f1
chore: bump dependency versions and replace eslint with biome
sebastianwessel Jun 22, 2024
b593916
fix: add missing next() call in default protectHandler #178
sebastianwessel Jun 22, 2024
4b0d71b
chore: fix dependencies and improve setup
sebastianwessel Jun 23, 2024
af06f05
chore: improve types
sebastianwessel Jun 23, 2024
463e0c7
chore: code cleanup
sebastianwessel Jun 23, 2024
37232ac
chore: prepare ressource definition feature
sebastianwessel Jun 23, 2024
0938d18
chore: improve code
sebastianwessel Jun 23, 2024
f2d53b1
chore: cleanup and improve code and project setup
sebastianwessel Jun 24, 2024
dc0037b
fix: lint and improve code
sebastianwessel Jun 24, 2024
e15346c
chore: separate unit tests
sebastianwessel Jun 24, 2024
62d42c9
chore: bump packages
sebastianwessel Jul 21, 2024
d5b7a64
chore: fix typo
sebastianwessel Jul 21, 2024
9bcaf66
chore: update package.json files
sebastianwessel Jul 21, 2024
275afa5
feat: add provides ressource to service builder #168
sebastianwessel Jul 21, 2024
e899b7b
chore: fix
sebastianwessel Jul 21, 2024
9271aa9
fix: type
sebastianwessel Jul 21, 2024
b72540c
feat: publish purists packages on jsr.io #179
sebastianwessel Jul 21, 2024
b40063d
chore: update script
sebastianwessel Jul 21, 2024
891be82
chore: use scalar as swagger ui in example
sebastianwessel Jul 21, 2024
3893760
chore: fix linter
sebastianwessel Jul 21, 2024
8917634
chore: bump dependencies
sebastianwessel Jul 26, 2024
c0bb450
doc: update installation documentation
sebastianwessel Jul 26, 2024
558676e
chore: bump dependency versions
sebastianwessel Aug 30, 2024
6d65ee8
chore: update project settings
sebastianwessel Aug 31, 2024
316494e
chore: add dependency
sebastianwessel Aug 31, 2024
6b95f6e
chore: fix lint
sebastianwessel Aug 31, 2024
bea6837
breaking change: if no schema is set use unknown instead of any type
sebastianwessel Aug 31, 2024
1512083
chore: add ressource type to command definition
sebastianwessel Aug 31, 2024
9ba3c84
fix: openapi generation for different validation schema types
sebastianwessel Aug 31, 2024
5296567
chore: fix lint
sebastianwessel Aug 31, 2024
1c88045
chore: improve test code
sebastianwessel Aug 31, 2024
a3b57d6
doc: fix typo
sebastianwessel Aug 31, 2024
1e46129
doc: fix custom event example and improve doc
sebastianwessel Aug 31, 2024
63442d0
breaking change: refactor Service and ServiceBuilder type handling
sebastianwessel Aug 31, 2024
8b2939c
chore: improve type handling
sebastianwessel Aug 31, 2024
403f84a
breaking change: deprecate setDefaultConfig in ServiceBuilder
sebastianwessel Aug 31, 2024
0d22268
breaking change: refactor Command and CommandBuilder type handling
sebastianwessel Sep 1, 2024
2b8f75d
fixup Command and CommandBuilder type handling
sebastianwessel Sep 3, 2024
efb9e7f
breaking change: refactor subscripton definition types
sebastianwessel Sep 5, 2024
1f3ef25
chore: cleanup and fix type refactoring
sebastianwessel Sep 5, 2024
7bea563
chore: update lint config
sebastianwessel Sep 5, 2024
78c9d50
feat: add getter for command function hooks
sebastianwessel Sep 5, 2024
ae03313
chore: add typecheck to unit tests
sebastianwessel Sep 5, 2024
68d2690
chore: improve examples
sebastianwessel Sep 6, 2024
48bb8b3
chore: improve service instance getter
sebastianwessel Sep 6, 2024
347e5b9
chore: improve tests
sebastianwessel Sep 6, 2024
4c4e1c0
chore: update ts config
sebastianwessel Sep 6, 2024
e1842dc
doc: add doc
sebastianwessel Sep 6, 2024
f0c720e
chore: minor updates and improvements
sebastianwessel Feb 3, 2025
beedebb
feat: add resources and improve code
sebastianwessel Feb 5, 2025
f4e7cfa
chore: migrate from defaultConfig to schema defaults
sebastianwessel Feb 6, 2025
462536c
chore: bump dependencies
sebastianwessel Feb 10, 2025
1652f01
breaking change: deprecate disableHttpSecurity in favor of makeEndpoi…
sebastianwessel Feb 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 0 additions & 10 deletions .eslintignore

This file was deleted.

71 changes: 0 additions & 71 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
git config --global user.email '[email protected]'
git config --global push.followTags true
./scripts/commitVersion.sh
echo New version:
npm run build
new_version=$(node -p -e "require('./package.json').version")
new_branch=purista_v$new_version
git checkout -b $new_branch
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ lab
__snapshots__

.tshy-build
.tshy
.tshy

gcloud-credentials.json
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.11
v20.17
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

59 changes: 29 additions & 30 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
{
"version": "0.2.0",
"configurations": [
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest: current file",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["${fileBasenameNoExtension}", "--config", "${workspaceFolder}/jest.config.js"],
"console": "integratedTerminal"
},

{
"type": "node",
"request": "launch",
"name": "Jest: current file",
//"env": { "NODE_ENV": "test" },
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["${fileBasenameNoExtension}", "--config", "${workspaceFolder}/jest.config.js"],
"console": "integratedTerminal"
},

{
"type": "node",
"request": "launch",
"name": "Jest debug current file",
"program": "${workspaceFolder}/node_modules/jest-cli/bin/jest",
"args": [
"${fileBasename}",
"--verbose",
"-i",
"--no-cache",
"--watchAll",
"--config", "${workspaceFolder}/jest.config.js"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
{
"type": "node",
"request": "launch",
"name": "Jest debug current file",
"program": "${workspaceFolder}/node_modules/jest-cli/bin/jest",
"args": [
"${fileBasename}",
"--verbose",
"-i",
"--no-cache",
"--watchAll",
"--config",
"${workspaceFolder}/jest.config.js"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
21 changes: 18 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"javascript.preferences.importModuleSpecifierEnding":"js"
}
"typescript.tsdk": "node_modules/typescript/lib",
"javascript.preferences.importModuleSpecifierEnding": "js",
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ If you have a question that needs an answer, create an issue, and label it as a
You can also join our Discord channel for questions and help: [Discord Channel](https://discord.gg/9feaUm3H2v)

Issues for bugs or feature requests
If you encounter any bugs in the code, or want to request a new feature or enhancement, please [create an issue to report it](https://github.com/sebastianwessel/purista/issues).
If you encounter any bugs in the code, or want to request a new feature or enhancement, please [create an issue to report it](https://github.com/puristajs/purista/issues).
Kindly add a label to indicate what type of issue it is.

# Contribute Code
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ See: [Security](./SECURITY.md)

Contributors are welcome!

[![Sebastian Wessel](https://contrib.rocks/image?repo=sebastianwessel/purista)](https://github.com/sebastianwessel/purista)
[![Sebastian Wessel](https://contrib.rocks/image?repo=sebastianwessel/purista)](https://github.com/puristajs/purista)

[PURISTA handbook](website/doc/handbook/)
112 changes: 112 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"ignore": [
"**/lib/**/*",
"cookieconsent.js",
"cookieconsent-config2.js",
"package-lock.json",
"**/dist/**/*",
"*.d.ts",
"**/coverage/**/*",
"docs/**/*",
"**/.tshy/**/*",
"**/.tshy-build/**/*",
"**/.vitepress/cache/**",
"**/doc/public/**/*",
"examples/fullexample/signoz/**",
"examples/fullexample/grafana/**",
"examples/fullexample/jaeger/**",
"examples/fullexample/teletrace/**",
"examples/fullexample/uptrace/**",
"examples/fullexample/zipkin/**"
]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"useArrowFunction": {
"level": "off",
"fix": "none"
},
"useLiteralKeys": {
"level": "warn",
"fix": "safe"
},
"noForEach": {
"level": "warn"
},
"noBannedTypes": {
"level": "warn",
"fix": "safe"
}
},
"correctness": {
"noUnusedImports": "error"
},
"suspicious": {
"noExplicitAny": {
"level": "off"
},
"noConsole": "error"
},
"performance": {
"noAccumulatingSpread": {
"level": "warn"
}
},
"style": {
"noUnusedTemplateLiteral": {
"level": "warn",
"fix": "safe"
}
}
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"attributePosition": "auto",
"indentStyle": "tab",
"indentWidth": 2,
"lineWidth": 120,
"lineEnding": "lf"
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"arrowParentheses": "asNeeded",
"bracketSameLine": false,
"bracketSpacing": true,
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"semicolons": "asNeeded",
"trailingCommas": "all",
"lineWidth": 120,
"indentWidth": 2,
"indentStyle": "tab"
}
},
"json": {
"formatter": {
"trailingCommas": "none"
}
},
"overrides": [
{
"include": ["packages/cli/**"],
"linter": {
"rules": {
"suspicious": {
"noConsole": "off"
}
}
}
}
]
}
Binary file added bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions examples/dapr-example/deployment/customsecrets.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"secret_key":"secret_value",
"emailProviderAuthToken":"auth_token_from_secret_store"
}
"secret_key": "secret_value",
"emailProviderAuthToken": "auth_token_from_secret_store"
}
Loading
Loading