Releases: TiLied/CSharpToJavaScript
Releases · TiLied/CSharpToJavaScript
0.2.1
- Nuget 0.2.1
- Update README.md
- Fixed a bug where an enum is ignored within a namespace.
- Fixed a bug where the argumentlist is null for object creation.
- Replace the baselist with only one type.
- Ignore the type for the catch declaration.
- Changed WithSemanticRewriter to WithSemanticWalker. Fixed bugs.
- Updated generated cs.
- Added support for modules. Only public classes are exported/imported. The "EnableModules" option is a three-state value. 0 = disable. 1 = auto. If 2 or more files, then enable. 2 = enable. Default: 1
- Added the "CustomPathToDLLs" option. Searches for any DLL in the specified directory. Previously, it was hardcoded to "./bin/". Default: "./bin/"
- Found with dotnet-trace that GetDiagnostics takes half of the time. Added the "DisableDiagnostics" option and removed the "DisableCompilationErrors" option. Default is false.
Full Changelog: 0.2.0...0.2.1
0.2.0
- Small clean up.
- Deleted Walker.cs.
- Switch to the rewriters instead of a walker.
- Rewrote a walker into 3 rewriters and 1 walker. The translated result should be more consistent.
- c# object -> js Object, c# string.Empty -> js String.raw``, c# List constructor -> js Array constructor
- Updated attributes.
What's Changed
New Contributors
Full Changelog: 0.1.10...0.2.0
0.1.10
0.1.9
Full Changelog: 0.1.8...0.1.9
0.1.8
0.1.7
- Nuget 0.1.7
- Small cleanup.
- Updated generated c#.
- Updated generated docs.
- Merge branch 'master' of https://github.com/TiLied/CSharpToJavaScript
- Added support for explisit cast/cast expression.
- Added Value property to NaN, Infinity and Undefined. Allowing the use of NaN, Infinity and Undefined as an expression. For example: cs: var a = NaN.Value; translated js: let a = NaN;
- Added support for base method calls. Basic, should be enough for the majority of cases..
- Fixed cast expression.
- Updated generated c#.
Full Changelog: 0.1.6...0.1.7
0.1.6
- Nuget 0.1.6
- Update README.md
- Merge branch 'master' of https://github.com/TiLied/CSharpToJavaScript
- Added "Substr" method to the "String" object.
- Added methods "GetYear", "SetYear", and "ToGMTString" to the Date object.
- Added lowercase variants to "Array", "Function", and "Object". For the tests.
- Added an overload "Define" to the "CustomElementRegistry".
- Added "Escape" and "Unescape" to the GlobalObject.
- Added overloads to "TypeOf" method. Attribute of "InstanceOf" changed to "GenericBinary".
- Added "GenericBinaryAttribute", "GenericUnaryAttribute" and "GenericAsArgument".
- Update README.md
- Update README.md
Full Changelog: 0.1.5...0.1.6
0.1.5
- Nuget 0.1.5
- Added comments.
- Merge branch 'master' of https://github.com/TiLied/CSharpToJavaScript
- Updated generated c#.
- Added "MakePropertiesEnumerable" option. Needed if you use json, since properties are not enumerable. Default: false.
- Removed EnumValueAttribute. Use ValueAttribute instead. Added "NoneWithLeadingDotRemoved" and "NoneWithTailingDotRemoved" options for ToAttribute.
- Added special syntax "//...\" Mostly for tests, for generating valid c# code.
- c# EndsWith -> js endsWith
- Updated license year.
- Updated "Microsoft.CodeAnalysis.CSharp" to 5.0.0.
Full Changelog: 0.1.4...0.1.5
0.1.4
0.1.3
- Nuget 0.1.3
- Added "In" method translates as in operator.
- Clean up.
- Improved this expression detection. Fixed globalstatement formatting.
- Updated generated cs.
- Merge branch 'master' of https://github.com/TiLied/CSharpToJavaScript
- Updated generated docs. Updated generated cs.
Full Changelog: 0.1.2...0.1.3