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

chore: release v 0.9.0 #601

Merged
merged 6 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,41 @@
# v0.9.0
[2025-01-10]

### Features

* \[[599](https://github.com/MaskingTechnology/jitar/pull/599)] feat: fractional module segmentation (#599) by Peter van Vliet
* \[[596](https://github.com/MaskingTechnology/jitar/pull/596)] feat: module re-export support (#596) by Peter van Vliet
* \[[590](https://github.com/MaskingTechnology/jitar/pull/590)] feat: index resolution (#590) by Bas Meeuwissen
* \[[571](https://github.com/MaskingTechnology/jitar/pull/571)] feat: resource configuration (#571) by Bas Meeuwissen
* \[[563](https://github.com/MaskingTechnology/jitar/pull/563)] feat(services): deregister worker on exit (#563) by Bas Meeuwissen

### Chores

* \[[591](https://github.com/MaskingTechnology/jitar/pull/591)] chore: http tests (#591) by Bas Meeuwissen
* \[[594](https://github.com/MaskingTechnology/jitar/pull/594)] chore(deps): january updates (#594) by Bas Meeuwissen
* \[[589](https://github.com/MaskingTechnology/jitar/pull/589)] chore: add tests for the sourcing package (#589) by Bas Meeuwissen
* \[[588](https://github.com/MaskingTechnology/jitar/pull/588)] chore: configuration test additions (#588) by Bas Meeuwissen
* \[[582](https://github.com/MaskingTechnology/jitar/pull/582)] chore: await uncaught promises (#582) by Bas Meeuwissen
* \[[579](https://github.com/MaskingTechnology/jitar/pull/579)] chore(deps): website and docs (#579) by Bas Meeuwissen
* \[[577](https://github.com/MaskingTechnology/jitar/pull/577)] chore(build): run codeql in parallel (#577) by Bas Meeuwissen
* \[[575](https://github.com/MaskingTechnology/jitar/pull/575)] chore(deps): vulnerabilities update (#575) by Bas Meeuwissen
* \[[569](https://github.com/MaskingTechnology/jitar/pull/569)] chore: fix sonar warnings (#569) by Bas Meeuwissen
* \[[566](https://github.com/MaskingTechnology/jitar/pull/566)] npm: bump cross-spawn from 7.0.3 to 7.0.6 (#566) by dependabot[bot]
* \[[558](https://github.com/MaskingTechnology/jitar/pull/558)] chore(build): more sonar issues (#558) by Bas Meeuwissen
* \[[556](https://github.com/MaskingTechnology/jitar/pull/556)] chore(build): sonar issues (#556) by Bas Meeuwissen
* \[[554](https://github.com/MaskingTechnology/jitar/pull/554)] chore(build): eslint 9 (#554) by Bas Meeuwissen

# v0.8.0
[2024-10-04]
[2024-10-05]

### Features

* \[[550](https://github.com/MaskingTechnology/jitar/pull/550)] feat: application builds (#550) by Peter van Vliet

### Chores

* \[[553](https://github.com/MaskingTechnology/jitar/pull/553)] chore: release v0.8.0 (#553) by Bas Meeuwissen

# v0.7.6
[2024-09-20]

Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/deploy/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The file has the following structure:
]
```

::: info
::: info NOTE
The `/index` part is optional. If the module is a directory, Jitar will automatically look for the index file.
:::

Expand Down
15 changes: 14 additions & 1 deletion documentation/docs/deploy/segmentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@ The import names must correspond with the export names in the module. You can al

```

Index files are also supported. Instead of specifying a module file, just specify the folder containing the index file.

```json
{
"./domain/some-folder":
{
"first": { "access": "public" },
"second": { "access": "public" },
}
}
```

Imports have multiple properties that can be configured. These properties will be explained next.

### Trusted clients
Expand All @@ -82,7 +95,7 @@ When building a distributed application, you don't want all functions to be avai

Any client that wants to access a protected function must provide a valid key. It needs to be added to the http header `X-Jitar-Trust-Key`. Any worker that has a valid key is automatically considered a trusted client, and adds the access key to the http header of outgoing requests. Any worker that doesn't have a valid access key is considered an untrusted client and can only access `public` functions.

::: info Note
::: info NOTE
To enable trusted clients, the gateway must always have a trusted key configured. Any worker that wants to register itself as a trusted client, must have the same value for the `trustKey` in its configuration.
:::

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.8.2",
"version": "0.9.0",
"command": {
"version": {
"message": "chore(release): publish %s"
Expand Down
11 changes: 11 additions & 0 deletions migrations/migrate-from-0.8.x-to-0.9.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Migrate from 0.8.x to 0.9.0

This release contains one breaking change. In previous versions of Jitar, segment files were scanned from the root of the project and had to have the extension `.segment.json`. This is no longer the case. The location of the segment files is now configurable.

The default location is `./segments` and can be overwritten in the `jitar.json` configuration file. The configuration key is `segments`.

```json
{
"segments": "./my-segments"
}
```
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jitar-monorepo",
"version": "0.8.0",
"version": "0.9.0",
"private": true,
"description": "Monorepo configuration for Jitar.",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/create-jitar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-jitar",
"version": "0.8.2",
"version": "0.9.0",
"type": "module",
"license": "MIT",
"author": "Masking Technology <[email protected]> (https://jitar.dev)",
Expand Down Expand Up @@ -50,5 +50,5 @@
"url": "https://github.com/MaskingTechnology/jitar/issues"
},
"homepage": "https://jitar.dev",
"gitHead": "0bff066d2b51e97e910486e72b9f6b089bae96b1"
"gitHead": "ab343592336927a9f9d1478da22d8e36ebf89382"
}
3 changes: 2 additions & 1 deletion packages/create-jitar/templates/jitar-only/jitar.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"source": "./dist",
"target": "./.jitar"
"target": "./.jitar",
"segments": "./segments"
}
2 changes: 1 addition & 1 deletion packages/create-jitar/templates/jitar-only/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"hello": "jitar start --service=services/hello.json"
},
"dependencies": {
"jitar": "^0.8.0"
"jitar": "^0.9.0"
}
}
3 changes: 2 additions & 1 deletion packages/create-jitar/templates/lit/jitar.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"source": "./dist",
"target": "./dist"
"target": "./.jitar",
"segments": "./segments"
}
4 changes: 2 additions & 2 deletions packages/create-jitar/templates/lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"standalone": "jitar start --service=services/standalone.json"
},
"dependencies": {
"jitar": "^0.8.0",
"jitar": "^0.9.0",
"lit": "^3.2.0"
},
"devDependencies": {
"@jitar/plugin-vite": "^0.8.0",
"@jitar/plugin-vite": "^0.9.0",
"typescript": "^5.5.3",
"vite": "^5.4.8"
}
Expand Down
3 changes: 2 additions & 1 deletion packages/create-jitar/templates/react/jitar.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"source": "./dist",
"target": "./dist"
"target": "./.jitar",
"segments": "./segments"
}
4 changes: 2 additions & 2 deletions packages/create-jitar/templates/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"standalone": "jitar start --service=services/standalone.json"
},
"dependencies": {
"jitar": "^0.8.0",
"jitar": "^0.9.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@jitar/plugin-vite": "^0.8.0",
"@jitar/plugin-vite": "^0.9.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/create-jitar/templates/solid/jitar.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"source": "./dist",
"target": "./dist"
"target": "./.jitar",
"segments": "./segments"
}
4 changes: 2 additions & 2 deletions packages/create-jitar/templates/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
},
"license": "MIT",
"devDependencies": {
"@jitar/plugin-vite": "^0.8.0",
"@jitar/plugin-vite": "^0.9.0",
"@types/express": "^4.17.21",
"typescript": "^5.5.3",
"vite": "^5.3.3",
"vite-plugin-solid": "^2.10.2"
},
"dependencies": {
"jitar": "^0.8.0",
"jitar": "^0.9.0",
"solid-js": "^1.8.18"
}
}
3 changes: 2 additions & 1 deletion packages/create-jitar/templates/svelte/jitar.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"source": "./dist",
"target": "./dist"
"target": "./.jitar",
"segments": "./segments"
}
4 changes: 2 additions & 2 deletions packages/create-jitar/templates/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"standalone": "jitar start --service=services/standalone.json"
},
"devDependencies": {
"@jitar/plugin-vite": "^0.8.0",
"@jitar/plugin-vite": "^0.9.0",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@tsconfig/svelte": "^5.0.4",
"svelte": "^4.2.19",
Expand All @@ -21,6 +21,6 @@
"vite": "^5.3.3"
},
"dependencies": {
"jitar": "^0.8.0"
"jitar": "^0.9.0"
}
}
3 changes: 2 additions & 1 deletion packages/create-jitar/templates/vue/jitar.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"source": "./dist",
"target": "./dist"
"target": "./.jitar",
"segments": "./segments"
}
4 changes: 2 additions & 2 deletions packages/create-jitar/templates/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"standalone": "jitar start --service=services/standalone.json"
},
"dependencies": {
"jitar": "^0.8.0",
"jitar": "^0.9.0",
"vue": "^3.4.31"
},
"devDependencies": {
"@jitar/plugin-vite": "^0.8.0",
"@jitar/plugin-vite": "^0.9.0",
"@vitejs/plugin-vue": "^5.0.5",
"typescript": "^5.5.3",
"vite": "^5.3.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/jitar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jitar",
"version": "0.8.2",
"version": "0.9.0",
"description": "Distributed runtime for JavaScript and TypeScript to chop monolithic applications into micros.",
"author": "Masking Technology <[email protected]> (https://jitar.dev)",
"license": "MIT",
Expand Down Expand Up @@ -63,5 +63,5 @@
"full stack",
"web applications"
],
"gitHead": "0bff066d2b51e97e910486e72b9f6b089bae96b1"
"gitHead": "ab343592336927a9f9d1478da22d8e36ebf89382"
}
4 changes: 2 additions & 2 deletions packages/plugin-vite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jitar/plugin-vite",
"version": "0.8.2",
"version": "0.9.0",
"description": "Vite plugin for Jitar.",
"author": "Masking Technology <[email protected]> (https://jitar.dev)",
"license": "MIT",
Expand Down Expand Up @@ -47,5 +47,5 @@
"vite-plugin",
"jitar"
],
"gitHead": "0bff066d2b51e97e910486e72b9f6b089bae96b1"
"gitHead": "ab343592336927a9f9d1478da22d8e36ebf89382"
}
Loading