rapydscript-ns 0.8.3 → 0.9.0
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/CHANGELOG.md +26 -0
- package/README.md +1351 -141
- package/TODO.md +12 -6
- package/language-service/index.js +184 -26
- package/package.json +1 -1
- package/release/baselib-plain-pretty.js +5895 -1928
- package/release/baselib-plain-ugly.js +140 -3
- package/release/compiler.js +16282 -5408
- package/release/signatures.json +25 -22
- package/src/ast.pyj +94 -1
- package/src/baselib-builtins.pyj +362 -3
- package/src/baselib-bytes.pyj +664 -0
- package/src/baselib-containers.pyj +99 -0
- package/src/baselib-errors.pyj +45 -1
- package/src/baselib-internal.pyj +346 -49
- package/src/baselib-itertools.pyj +17 -4
- package/src/baselib-str.pyj +46 -4
- package/src/lib/abc.pyj +317 -0
- package/src/lib/copy.pyj +120 -0
- package/src/lib/dataclasses.pyj +532 -0
- package/src/lib/enum.pyj +125 -0
- package/src/lib/pythonize.pyj +1 -1
- package/src/lib/re.pyj +35 -1
- package/src/lib/react.pyj +74 -0
- package/src/lib/typing.pyj +577 -0
- package/src/monaco-language-service/builtins.js +19 -4
- package/src/monaco-language-service/diagnostics.js +40 -19
- package/src/output/classes.pyj +161 -25
- package/src/output/codegen.pyj +16 -2
- package/src/output/exceptions.pyj +97 -1
- package/src/output/functions.pyj +87 -5
- package/src/output/jsx.pyj +164 -0
- package/src/output/literals.pyj +28 -2
- package/src/output/loops.pyj +5 -2
- package/src/output/modules.pyj +1 -1
- package/src/output/operators.pyj +108 -36
- package/src/output/statements.pyj +2 -2
- package/src/output/stream.pyj +1 -0
- package/src/parse.pyj +496 -128
- package/src/tokenizer.pyj +38 -4
- package/test/abc.pyj +291 -0
- package/test/arithmetic_nostrict.pyj +88 -0
- package/test/arithmetic_types.pyj +169 -0
- package/test/baselib.pyj +91 -0
- package/test/bytes.pyj +467 -0
- package/test/classes.pyj +1 -0
- package/test/comparison_ops.pyj +173 -0
- package/test/dataclasses.pyj +253 -0
- package/test/enum.pyj +134 -0
- package/test/eval_exec.pyj +56 -0
- package/test/format.pyj +148 -0
- package/test/object.pyj +64 -0
- package/test/python_compat.pyj +17 -15
- package/test/python_features.pyj +89 -21
- package/test/regexp.pyj +29 -1
- package/test/tuples.pyj +96 -0
- package/test/typing.pyj +469 -0
- package/test/unit/index.js +2292 -70
- package/test/unit/language-service.js +674 -4
- package/test/unit/web-repl.js +1106 -0
- package/test/vars_locals_globals.pyj +94 -0
- package/tools/cli.js +11 -0
- package/tools/compile.js +5 -0
- package/tools/embedded_compiler.js +15 -4
- package/tools/lint.js +16 -19
- package/tools/repl.js +1 -1
- package/web-repl/env.js +122 -0
- package/web-repl/main.js +1 -3
- package/web-repl/rapydscript.js +125 -3
- package/PYTHON_DIFFERENCES_REPORT.md +0 -291
- package/PYTHON_FEATURE_COVERAGE.md +0 -200
- package/hack_demo.pyj +0 -112
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
version 0.9.0
|
|
2
|
+
=======================
|
|
3
|
+
* All optional Python compatibility features are now enabled by default. See Python Feature Coverage from the README
|
|
4
|
+
* Add `enum` standard library module
|
|
5
|
+
* Add `dataclasses` standard library module
|
|
6
|
+
* Add `abc` standard library module (`ABC`, `abstractmethod`, `Protocol`)
|
|
7
|
+
* Add `typing` standard library module
|
|
8
|
+
* Add support for `eval()` and `exec()` to run python/rapydscript code. Please use this responsibly.
|
|
9
|
+
* Add support for `vars()` and `globals()` builtins
|
|
10
|
+
* Add support for complex numbers and complex number literals
|
|
11
|
+
* Add support for `bytes` literals and the `ByteString` type
|
|
12
|
+
* Add support for `__format__` dunder method
|
|
13
|
+
* Add support for Python-style container comparison (chained `<`/`>`)
|
|
14
|
+
* Add support for strict `zip()` behavior
|
|
15
|
+
* Add support for `object()`, `int.bit_length()`, and `float.is_integer()`
|
|
16
|
+
* Prevent JavaScript-style arithmetic type coercion when attempting to sum invalid mixed data types
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
version 0.8.4
|
|
20
|
+
=======================
|
|
21
|
+
* Added support for jsx
|
|
22
|
+
* Added support for basic React components
|
|
23
|
+
* support for __new__, __getattr__, __setattr__, __delattr__, __class_getitem__, __init_subclass__
|
|
24
|
+
* added `copy` standard library
|
|
25
|
+
|
|
26
|
+
|
|
1
27
|
version 0.8.0 - 0.8.3
|
|
2
28
|
=======================
|
|
3
29
|
|