Releases: TiLied/CSharpToJavaScript
Releases · TiLied/CSharpToJavaScript
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
0.1.2
- Nuget 0.1.2
- Update README.md
- Merge branch 'master' of https://github.com/TiLied/CSharpToJavaScript
- Only print references with the "Debug" option.
- Fixed regression with Generics.
- Update patch.yml
- Added "TypeOf" method translates as the typeof operator.
- Fixed regression with recent attribute changes.
- Added more comments to the options.
- Merge branch 'master' of https://github.com/TiLied/CSharpToJavaScript
- Removed "CustomCSTypesToJS" option. Now the code checks for a correct Attribute, no matter where the code is from, not exclusively from a "CSharpToJavaScript" namespace.
- Update README.md
- Merge branch 'master' of https://github.com/TiLied/CSharpToJavaScript
- Added method "InstanceOf" translates as "instanceof" operator. Also, translates "is" to "instanceof".
- Update README.md
- Added method "Delete" translates to the "delete" operator. Added method "Void" translates to the "void" operator.
- Merge branch 'master' of https://github.com/TiLied/CSharpToJavaScript
- Micro-optimization.
Full Changelog: 0.1.1...0.1.2
0.1.1
0.1.0
BREAKING CHANGE
The library now has a single entry point, consumes a string and outputs a string. Refer to the README.
- CSTOJS now static.
- Added static method Translate.
- Deleted all GenerateOne* methods.
- Added "TranslateFile" option
-
- Transferred "DisableConsoleColors" and "DisableConsoleOutput" to a Log.
-
- Log now public.
- Updated generated csharp.
- Updated logging colors.
Full Changelog: 0.0.10...0.1.0
0.0.10
- dotnet 10
- Clamping large numbers and printing a warning.
- Added workaround for "string.Empty"
- c# object -> js Object
- Added very specific workaround for "Method(new())"
- Added many missing assignments.
- Added "Debug.Assert" to log error.
- Added ecma boolean, function, symbol.
- c# TrimEnd -> js trimEnd
-
- c# TrimStart -> js trimStart
-
- c# ToUpper-> js toUpperCase
-
- c# ToLower-> js toLowerCase
- Added support for top-level statements.
- Added ecma String and updated other.
- More debug logs.
- Added Array.
-
- More pragma ignore.
- Added TypedArray.
- Further improvement to the debug output.
- Added ArrayBuffer, Atomics, DataView, JSON, Map, Set, SharedArrayBuff…
-
- …er, WeakMap, WeakSet.
- Added the rest of ecma objects.
- Added an indexer to an ObjectPrototype.
-
- For emulation "Bracket notation" in js.
- Print an error to the console if there is a compilation error.
- Always run the stopwatch.
- Display certain debug output only with Debug build.
- Changed "CustomCSNamesToJS" to Dictionary.
- Methods now include "options" parameter.
- Renamed "OutPutPath" to "OutputPath".
-
- Added option "OutputFileName".
- Support for a local function.
-
- More debug info with "ErrorLine".
- Fixed default values for properties.
- Fixed "CA1859: Use concrete types when possible for improved performa…
-
- …nce" with Logging.
-
- Added the rest of overrides.
- A few fixes with methods.
- Fixed many warnings.
- Explicitly call "VisitBinaryExpression".
- Fixed a crash where "foregroundcolor" is not supported.
- Changed a little debug output to the file.
- Updated generated documentation.
- Updated generated csharp.
Full Changelog: 0.0.09...0.0.10
0.0.09
For major changelog, see 0.0.08 release
Full Changelog: 0.0.08...0.0.09