@typed/tsconfig 0.4.0 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.json +7 -38
- package/dom.json +7 -0
- package/package.json +17 -15
- package/test.json +7 -0
- package/webworker.json +7 -0
- package/CHANGELOG.md +0 -76
- package/LICENSE +0 -21
- package/README.md +0 -5
package/base.json
CHANGED
|
@@ -1,48 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"downlevelIteration": true,
|
|
10
|
-
"emitDecoratorMetadata": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"experimentalDecorators": true,
|
|
13
|
-
"exactOptionalPropertyTypes": true,
|
|
14
|
-
"forceConsistentCasingInFileNames": true,
|
|
15
|
-
"incremental": true,
|
|
16
|
-
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
17
|
-
"module": "ES2022",
|
|
18
|
-
"moduleDetection": "force",
|
|
19
|
-
"moduleResolution": "Bundler",
|
|
20
|
-
"noEmit": false,
|
|
21
|
-
"noEmitOnError": false,
|
|
22
|
-
"noErrorTruncation": true,
|
|
23
|
-
"noFallthroughCasesInSwitch": true,
|
|
24
|
-
"noImplicitAny": true,
|
|
25
|
-
"noImplicitReturns": false,
|
|
26
|
-
"noImplicitThis": true,
|
|
27
|
-
"noUncheckedIndexedAccess": false,
|
|
28
|
-
"noUnusedLocals": true,
|
|
29
|
-
"noUnusedParameters": false,
|
|
30
|
-
"preserveSymlinks": true,
|
|
31
|
-
"removeComments": false,
|
|
32
|
-
"resolveJsonModule": true,
|
|
33
|
-
"resolvePackageJsonExports": true,
|
|
34
|
-
"skipLibCheck": true,
|
|
35
|
-
"sourceMap": true,
|
|
4
|
+
"target": "ES2024",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleResolution": "bundler",
|
|
36
7
|
"strict": true,
|
|
37
|
-
"
|
|
38
|
-
"stripInternal": true,
|
|
39
|
-
"target": "ES2022",
|
|
8
|
+
"skipLibCheck": true,
|
|
40
9
|
"plugins": [
|
|
41
10
|
{
|
|
42
|
-
"name": "@
|
|
11
|
+
"name": "@typed/virtual-modules-ts-plugin",
|
|
12
|
+
"debounceMs": 50
|
|
43
13
|
}
|
|
44
14
|
]
|
|
45
15
|
},
|
|
46
|
-
"
|
|
47
|
-
"exclude": ["**/node_modules/**", "**/build/**", "**/dist/**"]
|
|
16
|
+
"exclude": ["node_modules", "dist"]
|
|
48
17
|
}
|
package/dom.json
ADDED
package/package.json
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typed/tsconfig",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
"./base": "./base.json",
|
|
7
|
+
"./dom": "./dom.json",
|
|
8
|
+
"./test": "./test.json",
|
|
9
|
+
"./webworker": "./webworker.json"
|
|
10
|
+
},
|
|
5
11
|
"publishConfig": {
|
|
6
12
|
"access": "public"
|
|
7
13
|
},
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
"sideEffects": [],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"version": "changeset version && pnpm install --no-frozen-lockfile",
|
|
19
|
-
"release": "pnpm run build && changeset publish"
|
|
14
|
+
"files": [
|
|
15
|
+
"base.json",
|
|
16
|
+
"dom.json",
|
|
17
|
+
"test.json",
|
|
18
|
+
"webworker.json"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@typed/virtual-modules-ts-plugin": "workspace:*"
|
|
20
22
|
}
|
|
21
|
-
}
|
|
23
|
+
}
|
package/test.json
ADDED
package/webworker.json
ADDED
package/CHANGELOG.md
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# @typed/tsconfig
|
|
2
|
-
|
|
3
|
-
## 0.4.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- [`2ccad98`](https://github.com/TylorS/typed/commit/2ccad98a657d29ee9d6665d0954478781a00c80a) Thanks [@TylorS](https://github.com/TylorS)! - Massive 4-month update - MVP Full-stack Realworld Example
|
|
8
|
-
|
|
9
|
-
This has been a pretty massive set of changes that have been ongoing since December, over 300 commits. There was
|
|
10
|
-
lots and lots of trial and error and I didn't properly use changesets along the way.
|
|
11
|
-
|
|
12
|
-
@typed/template has gotten a lot of love. Yet another parser implementation, but this time, I decided not to re-invent the wheel so much.
|
|
13
|
-
I have opted to utilize the `html5-parser`'s tokenization which I then convert into Typed's `Template` structure for usage.
|
|
14
|
-
This has improved parsing performance about 2-3x in scenarios I have tested. DOM rendering has been refactored heavily to improve memory usage
|
|
15
|
-
and performance. Hydration in particular, in conjunction with updates to HTML rendering, has had a makeover to improve the accuracy of finding
|
|
16
|
-
existing information in the DOM. In practice, this overhead of hydration is about an extra 2ms of processing for every template instance compared
|
|
17
|
-
to non-hydration DOM rendering. HTML rendering, itself has been refactored to better ensuring proper ordering of HTML render events and to close its
|
|
18
|
-
Scope once all expected events have come through. No changes to its API occured.
|
|
19
|
-
|
|
20
|
-
@typed/route has been re-written. It is now based on an AST, fairly similar to `@effect/schema`, and couples the path strings (still based on path-to-regexp syntax) with `Schema`s which can encode/decode values from path strings. It is also possible to get schemas that only work on the `pathname` or `search` portions of a URL.
|
|
21
|
-
|
|
22
|
-
@typed/router has been updated to the new @typed/route, but no major API surface changes.
|
|
23
|
-
|
|
24
|
-
@typed/server is a new module. It's not much more than a thing Typed wrapper above awesome [effect-http](https://github.com/sukovanej/effect-http) project.
|
|
25
|
-
It's composable and declarative nature make it a perfect fit within the Typed ecosystem. Most of the modules are re-exports from effect-http,
|
|
26
|
-
and I'll list out the differences.
|
|
27
|
-
|
|
28
|
-
1. `ApiEndpoint.get`, and all other HTTP methods, now accept a `Route` from `@typed/route` instead of just a path string. This allows a single source of truth for routes, include paths and query parameters. If the route has a Path or QueryParams schema, they will be provided to the ApiEndpoint upon construction.
|
|
29
|
-
2. A custom `Router`, fairly similar and mostly compatible to the one from `@effect/platform/Http/Router`, has been implemented such that the same Routes can be utilized both server-side and browser-side.
|
|
30
|
-
3. Because of the last change the `RouterBuilder` module from `effect-http` has been replaced with a custom version that constructs our custom Router above.
|
|
31
|
-
4. A simple static files middleware with gzip support
|
|
32
|
-
|
|
33
|
-
Ideally @typed/server will continue to grow more and more use-cases that align with full-stack applications and other backend-for-frontend patterns and
|
|
34
|
-
provide Typed-specific integrations
|
|
35
|
-
|
|
36
|
-
One very big change necessary to getting a @typed/template-based application to seamlessly render both server and browser-side, Computed and Filtered types
|
|
37
|
-
have been updated to utilize `@typed/environment.CurrentEnvironment` to determine the behavior of its `Fx` interfaces. When browser-side, or testing as if it were, their Fx interfaces exist indefinitely while there are subscribers, but server-side it will emit exactly 1 event and then end.
|
|
38
|
-
|
|
39
|
-
There were many many more minute changes along the way, but the overall goal was to make a functioning realworld example. This is now complete, but Typed is currently on Effect 3.0.7 and other slightly outdated versions of Effect packages as the ecosystem moves so quickly, and I've had some issues updating to them I've got to sort out.
|
|
40
|
-
|
|
41
|
-
The realworld application is definitely still in a kind of MVP state, there's numerous opportunities for better APIs that make it easier to follow and avoid repitition. If you have any suggestions, positive or negative, but constructive, thoughts on how we could further improve things open a github issue or reach out in our Discord channel!
|
|
42
|
-
|
|
43
|
-
When the realworld example is in near-perfect condition, I'll be shifting focus to vast improvements to the API references, building a docs website, and then hopefully shipping an Alpha/Beta before the end of the summer.
|
|
44
|
-
|
|
45
|
-
## 0.3.0
|
|
46
|
-
|
|
47
|
-
### Minor Changes
|
|
48
|
-
|
|
49
|
-
- [`0b5c6ed`](https://github.com/TylorS/typed/commit/0b5c6edd739f753c5616a07cee5b9e08f8507595) Thanks [@TylorS](https://github.com/TylorS)! - Start of @typed/core package.
|
|
50
|
-
|
|
51
|
-
@typed/core is an existing package, and this will break it's public API to be a part of the larger modern
|
|
52
|
-
Typed project.
|
|
53
|
-
|
|
54
|
-
## 0.2.0
|
|
55
|
-
|
|
56
|
-
### Minor Changes
|
|
57
|
-
|
|
58
|
-
- [`708e9f5`](https://github.com/TylorS/typed/commit/708e9f58860702a7b8290ea261b1dad8b4b1c1c8) Thanks [@TylorS](https://github.com/TylorS)! - Fx + Template rewrite
|
|
59
|
-
|
|
60
|
-
## 0.1.2
|
|
61
|
-
|
|
62
|
-
### Patch Changes
|
|
63
|
-
|
|
64
|
-
- [`b79f52b8`](https://github.com/TylorS/typed/commit/b79f52b8f30b33db609880e1c7304a0d82e3bc7f) Thanks [@TylorS](https://github.com/TylorS)! - Fix internal ESM imports
|
|
65
|
-
|
|
66
|
-
## 0.1.1
|
|
67
|
-
|
|
68
|
-
### Patch Changes
|
|
69
|
-
|
|
70
|
-
- [`bd591ce4`](https://github.com/TylorS/typed/commit/bd591ce436247967cd0daeb5413335f06aea4418) Thanks [@TylorS](https://github.com/TylorS)! - Fix ESM builds
|
|
71
|
-
|
|
72
|
-
## 0.1.0
|
|
73
|
-
|
|
74
|
-
### Minor Changes
|
|
75
|
-
|
|
76
|
-
- [`5db779a2`](https://github.com/TylorS/typed/commit/5db779a2d2a0f6d78d5853dee6ca92b7385474bf) Thanks [@TylorS](https://github.com/TylorS)! - Pre-alpha release
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023-present The Contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|