Releases: goplus/xgo
Release list
v1.7.5
What's Changed
feature enum type:
- cl compileType: support enum type decl in func by @xushiwei in #2782
- cl loadConsts: if not untyped, convert value to the enum type by @xushiwei in #2784
- cl: allow same names across different enum types (#2787) by @xushiwei in #2790
feature static member:
- ast: add ValueSpec.HasStatic (#2513) by @xushiwei in #2785
- ast: mv methods by @xushiwei in #2789
- feat(syntax): add static value declarations by @KurodaKayn in #2783
- parser: static member refactor by @xushiwei in #2793
- parser: TestErrType, TestErrStaticMember by @xushiwei in #2794
- parser: TestErrStaticMember add cases by @xushiwei in #2795
feature function decorator:
- cl: implement Phase 2 semantic support for function decorators by @fennoai[bot] in #2801
- syntax: Phase 1 - Grammar Definition for Function Decorators by @fennoai[bot] in #2799
feature flat mode for XGo class framework:
- cl genClassProjectMain fix (flat): narg = 2 by @xushiwei in #2805
- cl: implement flat mode for XGo class framework by @fennoai[bot] in #2804
documents:
- doc: class framework (refactor) by @xushiwei in #2796
- doc/classfile: details by @xushiwei in #2800
- README: rm Report Card by @xushiwei in #2811
changes:
- fix: handle XGo AST extension nodes consistently by @aofei in #2806
- cl: resolve embedded work class names in class field initializers by @fennoai[bot] in #2817
deps:
- build(deps): bump github.com/goplus/mod 0.20.3 by @dependabot[bot] in #2786
- build(deps): bump github.com/goplus/gogen 1.23.5 by @dependabot[bot] in #2807
ci & tools:
- build(deps): bump actions/setup-go from 6 to 7 by @dependabot[bot] in #2813
New Contributors
- @KurodaKayn made their first contribution in #2783
Full Changelog: v1.7.3...v1.7.5
v1.7.3
What's Changed
features:
- feat: use EnumType as type expression in TypeSpec (issue #2751 Phase 1 redesign) by @fennoai[bot] in #2753
- feat: simplified enum type declaration - Phase 2 by @xushiwei in #2779
- feat: type-as-args (#2759) by @xushiwei in #2761
documents:
- doc: Enum Type by @xushiwei in #2780
- doc: Template Recv Method by @xushiwei in #2771
- doc/overload: fix source links by @xushiwei in #2757
- doc/overload: Under the Hood: How XGo Encodes Overloading in Go by @xushiwei in #2758
- doc/overload: Design Philosophy: What Overloading Means in XGo by @xushiwei in #2772
changes:
- fix: handle synthetic comments in commentBefore function by @go-wyvern in #2745
- parser: parseSlice => parseSliceOrMatrix by @xushiwei in #2755
- cl: support partial type params for XGox_ functions by @xushiwei in #2766
- cl: fix TestGoptLambdaError by @xushiwei in #2768
- cl todo: _testnext/type-args-template-recv-mthd by @xushiwei in #2773
- cl: _testxgo/type-args-template-recv-mthd; gogen v1.23.2 by @fennoai[bot] in #2777
- cl: mv _testgop => _testxgo; add _testgo by @xushiwei in #2774
- cl: TestTestgo: fix #2775 by @visualfc @xushiwei in #2781
deps:
ci & tools:
- chore: improve xgo maintenance path by @otjdiepluong in #2746
- build(deps): bump codecov/codecov-action from 6 to 7 by @dependabot[bot] in #2744
- build(deps): bump actions/checkout from 6 to 7 by @dependabot[bot] in #2762
New Contributors
- @otjdiepluong made their first contribution in #2746
Full Changelog: v1.7.2...v1.7.3
v1.7.2
What's Changed
changes:
- cb.ValWithUnit: handle err by @xushiwei in #2728
- cl compileComprehensionExpr: use types.NewParam instead of pkg.NewAutoParam by @xushiwei in #2738
- cl compileComprehensionExpr: use cb.MoveLastStmtTo instead of pkg.NewAutoParam by @xushiwei in #2739
- update gogen, change gogen.NewParam api by @visualfc in #2740
- mod github.com/goplus/gogen v1.23.0-pre.5 by @xushiwei in #2743
documents:
- fix: typo 'recieve' → 'receive' in README by @consultoriacompatricia-dotcom in #2737
- docs: fix typo "recieve" -> "receive" in README by @ImMike in #2736
- Fix typo in classfile documentation by @scosemicolon in #2742
deps:
- build(deps): bump github.com/goplus/cobra 1.10.7 by @dependabot[bot] in #2732
- build(deps): bump github.com/fsnotify/fsnotify 1.10.1 by @dependabot[bot] in #2733
New Contributors
- @consultoriacompatricia-dotcom made their first contribution in #2737
- @ImMike made their first contribution in #2736
- @scosemicolon made their first contribution in #2742
Full Changelog: v1.7.1...v1.7.2
v1.7.1
What's Changed
features:
- cl: support range over integer types (Go 1.22+) by @xgopilot[bot] @xushiwei in #2713 #2714
- cl: support new(expr) for Go 1.26+ by @xgopilot[bot] @xushiwei in #2712 #2715
- cl: support overload interface methods by @xushiwei in #2727
- x/format: XGoStyleSource/XGoStyle by @visualfc in #2724
features (xgo pack):
- tool: add pack package for merging scattered config files by @xgopilot[bot] in #2710
- tool/pack: PackFlagPrompt by @xushiwei in #2716
- tool/pack: add PackProject for fs.ReadDirFS-based packing by @xgopilot[bot] in #2721
- tool/pack refactor by @xushiwei in #2722
- xgo pack command by @xushiwei in #2717
documents:
changes:
- cl: _testjs by @xushiwei in #2705
- dql/fetcher: use isClass(xxx) instead of ($class == "xxx") by @xgopilot[bot] in #2711
deps:
- build(deps): bump github.com/goplus/mod from 0.20.1 to 0.20.2 by @dependabot[bot] in #2723
ci & tools
Full Changelog: v1.7.0...v1.7.1
v1.7.0
What's Changed
features:
changes:
- fix(tool): use xgo version as cache hash for bundled packages by @xgopilot[bot] and @xushiwei in #2690 #2691
- TestClassContains by @xushiwei in #2694
- revert #2670 by @xushiwei in #2693
- gogen v1.22.0: revert overload-conflict by @xushiwei in #2699
deps:
- build(deps): bump github.com/goplus/mod from 0.20.0 to 0.20.1 by @dependabot[bot] in #2698
Full Changelog: v1.6.9...v1.7.0
v1.6.9
What's Changed
changes:
deps:
- build(deps): bump github.com/goplus/cobra from 1.9.13 to 1.9.15 by @dependabot[bot] in #2686
ci & tools:
- build(deps): bump codecov/codecov-action from 5 to 6 by @dependabot[bot] in #2687
Full Changelog: v1.6.8...v1.6.9
v1.6.8
What's Changed
spec:
- docs: add classfile specification by @aofei in #2675
- fix(classfile): sanitize reserved class type names by @aofei in #2683
features:
changes:
- refactor(classfile): remove built-in
.spxand.gmxhandling by @aofei in #2677 - mod v0.20.0 by @xushiwei in #2681
Full Changelog: v1.6.7...v1.6.8
v1.6.7
What's Changed
features:
- cl: implement interface-based keyword arguments (#2678) by @xgopilot[bot] @xushiwei in #2679 #2680
- xgo builtin func: contains by @xushiwei in #2670
- dql/html: TextOf with a nodeFilter and support pre tag by @xushiwei in #2672 #2673 #2674 #2676
- dql/fetcher: URL by @xushiwei in #2668
deps:
- build(deps): bump github.com/goplus/mod 0.19.5 by @dependabot[bot] in #2658
- build(deps): bump github.com/goplus/cobra from 1.9.12 to 1.9.13 by @xushiwei in #2671
ci & tools:
- build(deps): bump goreleaser/goreleaser-action from 6 to 7 by @dependabot[bot] in #2659
- build(deps): bump docker/login-action from 3 to 4 by @dependabot[bot] in #2662
- build(deps): bump docker/setup-qemu-action from 3 to 4 by @dependabot[bot] in #2661
- build(deps): bump docker/setup-buildx-action from 3 to 4 by @dependabot[bot] in #2664
Full Changelog: v1.6.6...v1.6.7
v1.6.6
What's Changed
DQL (DOM Query Language) (#2611):
- dql/ts: https://github.com/goplus/dql/releases/tag/v0.2.0
- cl.compileAttr: v.$name => v["name"] as fallback if v is a map or empty interface by @xushiwei in #2650
- dql/maps,reflects: _name, _value by @xushiwei in #2651
- dql: Node by @xushiwei in #2652
- dql/xgo: doc (Go => XGo) by @xushiwei in #2654
- dql/golang,xgo: support load from uri by @xushiwei in #2656
- dql/reflects: lookup attr support method by @xushiwei in #2657
changes:
Full Changelog: v1.6.5...v1.6.6
v1.6.5
What's Changed
DQL (DOM Query Language) (#2611):
- dql: README by @xushiwei in #2647
- cmd: hdq by @xushiwei in #2646
- dql/fetcher by @xushiwei in #2637 #2645
- dql/html,xml: text by @xushiwei in #2643
- dql: fs by @xushiwei in #2635 #2636
encoding (Domain Text Literal):
changes:
- cl: compileErrWrapExpr remove autoCall (#2638) by @xgopilot @xushiwei in #2640
- parser: parseEnvExpr support $"attr-name" by @xushiwei in #2641
deps:
- build(deps): bump github.com/goplus/mod from 0.19.2 to 0.19.3 by @dependabot[bot] in #2644
- build(deps): bump github.com/qiniu/x v1.16.2 by @dependabot[bot] in #2644
Full Changelog: v1.6.3...v1.6.5