Skip to content

Commit c49355a

Browse files
Fixed links in READMEs for v0.1.2 (#55)
1 parent 2e1928c commit c49355a

File tree

10 files changed

+32
-27
lines changed

10 files changed

+32
-27
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ We roughly follow the ideas of [semantic versioning](https://semver.org/).
44
Note that the versions "0.x.0" probably will include breaking changes.
55

66

7+
## v0.1.2 (December 2024)
8+
9+
- Replaced absolute paths in READMEs by relative paths, which is a requirement for correct links on NPM
10+
11+
712
## v0.1.1 (December 2024)
813

914
- Improved the READMEs in the packages `typir` and `typir-langium`.
@@ -17,15 +22,15 @@ This is the first official release of Typir.
1722
It serves as first version to experiment with Typir and to gather feedback to guide and improve the upcoming versions. We are looking forward to your feedback!
1823

1924
- [Linked issues and PRs](https://github.com/TypeFox/typir/milestone/2)
20-
- Core implementations of the following [type-checking services](/packages/typir/src/services/):
25+
- Core implementations of the following [type-checking services](./packages/typir/src/services/):
2126
- Assignability
2227
- Equality
2328
- Conversion (implicit/coercion and explicit/casting)
2429
- Type inference
2530
- Sub-typing
2631
- Validation
2732
- Caching
28-
- [Predefined types](/packages/typir/src/kinds/) to reuse:
33+
- [Predefined types](./packages/typir/src/kinds/) to reuse:
2934
- Primitives
3035
- Functions (with overloading)
3136
- Classes (nominally typed)

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This repository contains the following stand-alone applications, which demonstra
6161

6262
## Tiny Typir Example
6363

64-
Both the LOX and OX examples have been created with Langium. Here is a very small example for using Typir with a tiny expression language, which is independent from any language workbench like Langium. We show how to use the Typir API for type checking of Tiny Typir. You can also find the example in the repository, implemented in form of an executable [test case](/packages/typir/test/api-example.test.ts).
64+
Both the LOX and OX examples have been created with Langium. Here is a very small example for using Typir with a tiny expression language, which is independent from any language workbench like Langium. We show how to use the Typir API for type checking of Tiny Typir. You can also find the example in the repository, implemented in form of an executable [test case](./packages/typir/test/api-example.test.ts).
6565
Our Tiny Typir language has only a few concepts (all are realized as `AstElement`s), namely numbers (`NumberLiteral`), strings (`StringLiteral`), binary expressions (`BinaryExpression`), variables (`Variable`), and assignments (`AssignmentStatement`). They are implemented in a very simple way, see for example our `BinaryExpression`:
6666

6767
```typescript
@@ -74,7 +74,7 @@ class BinaryExpression extends AstElement {
7474
}
7575
```
7676

77-
Feel free to check out the others in the [test code](/packages/typir/test/api-example.test.ts), but a little spoiler: no surprises there.
77+
Feel free to check out the others in the [test code](./packages/typir/test/api-example.test.ts), but a little spoiler: no surprises there.
7878

7979
Let's head into setting up the Typir type system and creating the primitive types for our NumberLiteral and StringLiteral, which is a one line of code job each, as we use the Typir's predefined Primitives factory service:
8080

@@ -169,8 +169,8 @@ expect(errors2[0].message).toBe("The type 'string' is not assignable to the type
169169

170170
Typir is presented in these talks:
171171

172-
- [LangDev'24](https://langdevcon.org/2024/program#26): [Video](https://www.youtube.com/watch?v=CL8EbJYeyTE), [slides](/resources/talks/2024-10-17-LangDev.pdf) (2024-10-17)
173-
- [OCX/EclipseCon'24](https://www.ocxconf.org/event/778b82cc-6834-48a4-a58e-f883c5a7b8c9/agenda?session=23b97df9-0435-4fab-8a01-e0a9cf3e3831&shareLink=true): [Video](https://www.youtube.com/watch?v=WLzXAhcl-aY&list=PLy7t4z5SYNaRRGVdF83feN-_uHLwvGvgw&index=23), [slides](/resources/talks/2024-10-24-EclipseCon.pdf) (2024-10-24)
172+
- [LangDev'24](https://langdevcon.org/2024/program#26): [Video](https://www.youtube.com/watch?v=CL8EbJYeyTE), [slides](./resources/talks/2024-10-17-LangDev.pdf) (2024-10-17)
173+
- [OCX/EclipseCon'24](https://www.ocxconf.org/event/778b82cc-6834-48a4-a58e-f883c5a7b8c9/agenda?session=23b97df9-0435-4fab-8a01-e0a9cf3e3831&shareLink=true): [Video](https://www.youtube.com/watch?v=WLzXAhcl-aY&list=PLy7t4z5SYNaRRGVdF83feN-_uHLwvGvgw&index=23), [slides](./resources/talks/2024-10-24-EclipseCon.pdf) (2024-10-24)
174174

175175

176176
## Roadmap
@@ -183,7 +183,7 @@ The roadmap include, among other, these features:
183183
- Calculate types, e.g. operators whose return types depend on their current input types
184184
- Optimized APIs to register rules for inference and validation
185185

186-
For the released versions of Typir, see the [CHANGELOG.md](/CHANGELOG.md).
186+
For the released versions of Typir, see the [CHANGELOG.md](./CHANGELOG.md).
187187

188188

189189
## Contributing
@@ -195,4 +195,4 @@ We also have a release process described in [RELEASE.md](./RELEASE.md).
195195

196196
## License
197197

198-
Typir is fully [MIT licensed](/LICENSE).
198+
Typir is fully [MIT licensed](./LICENSE).

examples/lox/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "typir-example-lox",
33
"displayName": "lox",
4-
"version": "0.1.1",
4+
"version": "0.1.2",
55
"private": true,
66
"description": "",
77
"author": {
@@ -30,7 +30,7 @@
3030
"dependencies": {
3131
"commander": "~12.1.0",
3232
"langium": "~3.3.0",
33-
"typir-langium": "~0.1.1",
33+
"typir-langium": "~0.1.2",
3434
"vscode-languageclient": "~9.0.1",
3535
"vscode-languageserver": "~9.0.1"
3636
},

examples/ox/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Typir applied to OX
22

3-
OX is a reduced version of [LOX](/examples/lox/) in order to demonstrate type checking with [Typir](https://typir.org/) for primitives, functions and operators only.
3+
OX is a reduced version of [LOX](../lox/) in order to demonstrate type checking with [Typir](https://typir.org/) for primitives, functions and operators only.
44

55
For examples written in OX, look at some [collected examples](./examples/) or the [test cases](./test/).
66

examples/ox/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "typir-example-ox",
33
"displayName": "ox",
4-
"version": "0.1.1",
4+
"version": "0.1.2",
55
"private": true,
66
"description": "",
77
"author": {
@@ -30,7 +30,7 @@
3030
"dependencies": {
3131
"commander": "~12.1.0",
3232
"langium": "~3.3.0",
33-
"typir-langium": "~0.1.1",
33+
"typir-langium": "~0.1.2",
3434
"vscode-languageclient": "~9.0.1",
3535
"vscode-languageserver": "~9.0.1"
3636
},

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/typir-langium/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install typir-langium
1515

1616
## Documentation
1717

18-
For an overview about the core features of Typir with a simple application example, see the [root README.md of the Typir project](/README.md).
18+
For an overview about the core features of Typir with a simple application example, see the [root README.md of the Typir project](../../README.md).
1919

2020
Important design decision for Typir-Langium:
2121
Typir-Langium does not depend on `langium/lsp`, i.e. Typir-Langium can be used even for Langium-based DSLs which don't use LSP.
@@ -39,4 +39,4 @@ Look at the examples in the `examples/` folder of the repo ([here](../../example
3939
4040
## License
4141
42-
[MIT License](/LICENSE)
42+
[MIT License](../../LICENSE)

packages/typir-langium/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typir-langium",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Typir binding for Langium",
55
"homepage": "https://typir.org",
66
"author": {
@@ -49,6 +49,6 @@
4949
"bugs": "https://github.com/TypeFox/typir/issues",
5050
"dependencies": {
5151
"langium": "~3.3.0",
52-
"typir": "~0.1.1"
52+
"typir": "~0.1.2"
5353
}
5454
}

packages/typir/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install typir
1515

1616
## Documentation
1717

18-
For an overview about the core features of Typir with a simple application example, see the [root README.md of the Typir project](/README.md).
18+
For an overview about the core features of Typir with a simple application example, see the [root README.md of the Typir project](../../README.md).
1919

2020
Important design decision:
2121
Typir is a stand-alone library and has no dependencies to any existing language workbench.
@@ -28,4 +28,4 @@ Look at the examples in the `examples` folder of the repo ([here](../../examples
2828

2929
## License
3030

31-
[MIT License](/LICENSE)
31+
[MIT License](../../LICENSE)

packages/typir/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typir",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "General purpose type checking library",
55
"homepage": "https://typir.org",
66
"author": {

0 commit comments

Comments
 (0)