functionalscript 0.0.581 → 0.0.582
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/issues/README.md +11 -21
- package/jsr.json +1 -1
- package/package.json +1 -1
package/issues/README.md
CHANGED
|
@@ -2,29 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## Allow Debugging During Test Run
|
|
4
4
|
|
|
5
|
-
Currently, we read files as strings and then parse them as functions. See [dev/test.mjs](dev/test.mjs). In this case, debugger doesn't know about source code and can't debug the functions. The main reason for loading modules as functions was that Deno v1 didn't support `.cjs` files. However, Deno v2
|
|
5
|
+
Currently, we read files as strings and then parse them as functions. See [dev/test.mjs](dev/test.mjs). In this case, the debugger doesn't know about the source code and can't debug the functions. The main reason for loading modules as functions was that Deno v1 didn't support `.cjs` files. However, Deno v2 supports them.
|
|
6
6
|
|
|
7
|
-
We can fix the issue by changing our test runner. The test runner will scan all directories
|
|
7
|
+
We can fix the issue by changing our test runner. The test runner will scan all directories, find all `test.f.cjs` files, and then load them using `require`.
|
|
8
8
|
|
|
9
|
-
**Note:** we will drop support for Deno v1.
|
|
9
|
+
**Note:** in this case, we will drop support for Deno v1.
|
|
10
10
|
|
|
11
|
-
## Creating `./
|
|
11
|
+
## Creating `./index.f.cjs`
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Currently, we regenerate [./index.f.cjs](./index.f.cjs) using `npm run index` during CD (publishing). However, we don't check in CI if it was regenerated. The idea is that CI should check if all generated files in Git are updated:
|
|
14
|
+
- [package.json](./package.json) `version` property
|
|
15
|
+
- [jsr.json](./jsr.json), `version` property
|
|
16
|
+
- [index.f.cjs](./index.f.cjs)
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
list: require('./types/list/module.f.cjs'),
|
|
19
|
-
// ...
|
|
20
|
-
},
|
|
21
|
-
// ...
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Then, users can use it like this:
|
|
26
|
-
|
|
27
|
-
```js
|
|
28
|
-
const { types: { list } } = require('functionalscript)
|
|
29
|
-
//...
|
|
30
|
-
```
|
|
18
|
+
`version` property should be
|
|
19
|
+
- `version` calculated on a `main` branch.
|
|
20
|
+
|
package/jsr.json
CHANGED