Releases: TiLied/CSharpToJavaScript
Releases · TiLied/CSharpToJavaScript
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
0.0.08
Highlight:
Method "GenerateOneContinuously" continuously watching for file modifications:

Options used: UseStrictEquality, KeepBraceOnTheSameLine, NormalizeWhitespace
Rest of changes:
- NullableType is ignored for properties.
-
- Added a console warning if the object initializer is used.
-
- Better output c# lines into js when debug is enabled.
-
- Clean up.
- Added support for property default values.
-
- Updated Microsoft.CodeAnalysis.CSharp to 4.10.0.
- Fixed static properties.
-
- Ignore ArrayType in parameters.
-
- Small changes to code.
- Added missing arithmetic expressions and tokens.
- Added method "GenerateOneContinuously":
generating continuously by watching the cs file. -
- Added option " UseStrictEquality":
replace '==' with '===' default false.
- Added option " UseStrictEquality":
-
- Initial support dictionary to map.
-
- Small changes, bug fixes.
- Small changes, mostly renames.
- Update License.
- Added BigInt.
- Added Error objects.
- Uncomment some piece of code in GlobalObject.
- Added missing GM api alongside documentation.
- Added EnumValue attribute.
- Updated nuget "Microsoft.CodeAnalysis.CSharp" to 4.12.0
- Removed mostly whitespaces when used with "KeepBraceOnTheSameLine".
Still, I recommend using "KeepBraceOnTheSameLine" with the "NormalizeWhitespace" option. -
- Fixed bug where file generates simultaneously.
- Added ValueAttribute and EnumValueAttribute.
- Separate "csharp api to js", needed for GenDocsLib.
-
- Added support for strict inequality.
- Updated comment with strict inequality.
- Added log when using GenerateOneContinuously.
- Updated generated docs.
- Corrected namespace.
- Renamed option AddSBInFront to AddSBAtTheTop.
-
- Renamed option AddSBInEnd to AddSBAtTheBottom.
- Updated generated docs.
See GenDocsLib. - Updated generated c#.
See GenCSharpLib. - Updated generated c#.
- Moved checking attributes to a separate method.
- Added expressions.
Full Changelog: 0.0.07...0.0.08