functionalscript 0.0.580 → 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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # FunctionalScript
2
2
 
3
+ [![NPM Version](https://img.shields.io/npm/v/functionalscript)](https://www.npmjs.com/package/functionalscript)
4
+
3
5
  FunctionalScript is a purely functional programming language and a strict subset of
4
6
  [ECMAScript](https://en.wikipedia.org/wiki/ECMAScript)/[JavaScript](https://en.wikipedia.org/wiki/JavaScript). It's inspired by
5
7
 
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 support them.
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 and find all `test.f.cjs` files and then load them using `require`.
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 `./_module.f.cjs`
11
+ ## Creating `./index.f.cjs`
12
12
 
13
- We can write a script which will generate `./_module.f.cjs` before packaging. Note: the script should be added into [prepack](https://docs.npmjs.com/cli/v8/using-npm/scripts#pre--post-scripts). The module should never be used by other internal modules. It's only for internal consumptions. The structure will be like this
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
- ```js
16
- module.exports = {
17
- types: {
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
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@functionalscript/functionalscript",
3
- "version": "0.0.580",
3
+ "version": "0.0.582",
4
4
  "exports": "./index.f.cjs"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.0.580",
3
+ "version": "0.0.582",
4
4
  "description": "FunctionalScript is a functional subset of JavaScript",
5
5
  "main": "index.f.cjs",
6
6
  "scripts": {