56 Commits

Author SHA1 Message Date
Christian Kohlschütter
a979860baf core-lib: Use parent POM 2023-10-14 19:12:53 +02:00
Christian Kohlschütter
cf267787c3 core-lib es5: Use parent POM 2023-10-14 19:12:53 +02:00
Christian Kohlschütter
4d5e1c0686 Bump core-lib versions to 5/6.3.1-SNAPSHOT 2023-10-10 15:04:51 +02:00
Christian Kohlschütter
34d6b02cbf core-lib: Disable signing by default, allow snapshots 2023-10-10 15:04:33 +02:00
Christian Kohlschütter
7b5569d486 Add support @TsNoCheck annotation, adds "// @ts-nocheck" to TypeScript
Typescript would complain about certain errors in the generated file. In
some newer versions of TypeScript, an assert that is always true would
not be permitted.

We currently have two such asserts in our tests, which prevents us from
upgrading the TypeScript version.

Add support for a Java @TsNoCheck annotation, which controls the
inclusion of the corresponding TypeScript comment. While there is no
mandatory package for the annotation, add it to jsweet.lang in core-lib.

Fix tests to use the new annotation.
2023-10-06 20:01:48 +02:00
Renaud Pawlak
e6a8416552 fix core lib version 2020-12-15 18:16:14 +01:00
Renaud Pawlak
1eaf3c799d revert to orignal group id + java 8 for candies 2020-12-14 07:26:48 +01:00
Louis Grignon
127ac92bb8 3.0.0-RC4 2020-09-08 17:18:08 +02:00
Louis Grignon
3eed867c47 new packageId for v3 candies + commit missing @StringEnum 2020-09-07 23:15:57 +02:00
Louis Grignon
677ae8b0a7 javadoc 2020-09-07 19:13:37 +02:00
Louis Grignon
55abf3f676 fix signing passphrase from maven settings (JSweet 2 catch-up 117f731807) 2020-09-07 12:12:18 +02:00
Louis Grignon
46b8a67782 add an annotation KeepUses to allow the user to avoir invocation erasing (JSweet 2 catch-up 974b62881d) 2020-09-06 20:09:37 +02:00
lgrignon
65c54e8e2d Core ES5/ES6 release 2020-01-12 11:28:13 +01:00
Louis Grignon
7f2000e03b add $invoke capability
Brings dynamic invoke capability to def.js.Object.

It allows to dynamically call a method on an object for instance if
definition is missing or simply if it is not possible to do it
otherwise.
2019-04-27 18:47:13 +02:00
Louis Grignon
26beb8d8ce next snapshot version: 2.3.0-SNAPSHOT 2019-03-15 23:39:51 +01:00
Louis Grignon
13ce785f2e core ES5 pom.xml modifications for release 2019-03-10 23:29:13 +01:00
Louis Grignon
7838b80403 pom for release 2019-03-10 16:34:26 +01:00
Louis Grignon
31ef499237 added stack and generic get to js error 2018-06-09 19:24:29 +02:00
Louis Grignon
c6b18cdc2b merged WrapParameters PR #434 2018-05-13 19:30:13 +02:00
Renaud Pawlak
599b201166 fix $get/$set API + javadoc 2017-09-14 05:05:08 +02:00
Renaud Pawlak
5c6562d93f allow @Replace for constructors (fix #339) 2017-08-17 09:52:11 +02:00
Renaud Pawlak
2053256e06 update javadoc location 2017-08-02 17:09:22 +02:00
Renaud Pawlak
0c3bf3434f use artifactId instead of name 2017-08-02 10:39:31 +02:00
Renaud Pawlak
9f58eea109 update javadoc location 2017-08-02 10:15:51 +02:00
Renaud Pawlak
7172bc6415 configure javadoc location 2017-08-02 08:56:57 +02:00
Renaud Pawlak
5d6e5783af remove deprecated Globals 2017-07-31 12:00:25 +02:00
Renaud Pawlak
a612603ef5 add javadoc plugin 2017-07-26 09:33:43 +02:00
Renaud Pawlak
e8b127deef API + javadoc 2017-07-10 16:11:42 +02:00
Renaud Pawlak
5ba170c967 according to the new DOM specs, coordinates are double (not integers) 2017-05-29 14:41:20 +02:00
Renaud Pawlak
ca9c2a0ed9 double -> int 2017-05-23 14:54:57 +02:00
Renaud Pawlak
4435a9aa6b generic eval result 2017-05-22 12:02:01 +02:00
Renaud Pawlak
90e35a7931 fixed tying for NodeListOf 2017-05-17 09:15:33 +02:00
Renaud Pawlak
bac62d04b9 more core Java support
- numbers (Float.intBitsToFloat, ...)
- Class.isInstance
2017-05-16 08:12:45 +02:00
Renaud Pawlak
a91bd7ec8f support for $noarrow macro
By default, JSweet generates arrow functions for Java lambda (the 'this'
semantics is closer to Java). Wrapping a function in $noarrow will force
JSweet to produce a plain old JavaScript function rather than an arrow
function.
2017-05-11 17:31:32 +02:00
Renaud Pawlak
244e2112e1 @Replace now uses a better-looking mustache-like syntax 2017-05-11 09:52:57 +02:00
Renaud Pawlak
ef3314214d added signatures taking Runnable 2017-05-09 16:29:26 +02:00
Renaud Pawlak
63186dcef5 better typing for String.replace 2017-05-09 15:58:41 +02:00
Renaud Pawlak
3c43b3301f added more tests and sound constraints on mixins 2017-05-07 17:14:23 +02:00
Renaud Pawlak
7cee074faa deprecated @Ambient annotation
@Ambient annotation was used to inline declarations. However they suffer
from the Java packages structure, which is less flexible than namespaces
in TypeScript. Since @Ambient are always defined in the package they
appear, they are not convenient when working out of the root package.
Plus, now that def.* packages are working well in version 2, the
@Ambient annotation is redundant with using def.* packages. So, it was
decided that all ambient declarations should be defined in def.*
packages, thus forcing the developers to cleanly separate the actual
implementation from the bridges to external libraries. We believe it is
good practice to do so in Java in order to have a better-structured
program.
2017-05-06 09:44:53 +02:00
Renaud Pawlak
c6a468998e double -> int 2017-05-05 08:59:48 +02:00
Renaud Pawlak
f92c33feea fixed undefined type 2017-05-03 18:01:55 +02:00
Renaud Pawlak
6867013d68 added forgotten $set on arrays 2017-05-03 16:07:47 +02:00
Renaud Pawlak
11c8062111 various improvements preparing v2
- support for decorators (fixed #43)
- added support for core JS features (function-scope this ($this),
function-scope arguments, ...
- added/modified macros ($insert, $loose/$strict, ...)
- modified es5 and es6 API to simplify the use of JavaScript strings and
arrays
2017-05-03 12:41:51 +02:00
Renaud Pawlak
0904e0a618 reverted $apply on JS Function object 2017-05-02 05:44:38 +02:00
Renaud Pawlak
e39515891a added first support for JavaScript this and arguments 2017-05-02 05:41:11 +02:00
Renaud Pawlak
a41eb9db38 revert $apply on core functional interfaces 2017-04-26 11:07:53 +02:00
Louis Grignon
d2b6dcafea apply on core libs 2017-04-26 04:57:23 +02:00
Renaud Pawlak
f04583b7cb moved jsweet.util.Globals to jsweet.util.Lang
- keep but deprecate old API
- code cleaning/formatting
- test for #245
2017-04-20 14:49:52 +02:00
Renaud Pawlak
ce52c5ce1c rename annotation 2017-03-17 13:52:45 +01:00
Louis Grignon
b8c5f9219f api es6 fixes + transpiler javadoc in target 2017-02-10 18:15:40 +01:00