Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: visibility modifiers for any module member #1104

Merged
merged 17 commits into from
Apr 25, 2024

Conversation

lars-reimann
Copy link
Member

@lars-reimann lars-reimann commented Apr 25, 2024

Closes #1083

Summary of Changes

All module members can now have a visibility. This is useful if, say, a class is only used internally for typing.

Pipelines must always be private, which is also the default if no visibility modifier is provided. They can never be referenced anyway, not even in the same file.

@lars-reimann lars-reimann linked an issue Apr 25, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Apr 25, 2024

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ JSON eslint-plugin-jsonc 4 0 0 1.42s
✅ JSON jsonlint 4 0 0.27s
✅ JSON npm-package-json-lint yes no 0.83s
✅ JSON prettier 4 0 0 0.8s
✅ JSON v8r 4 0 2.37s
✅ REPOSITORY git_diff yes no 0.2s
✅ TYPESCRIPT eslint 10 0 0 5.97s
✅ TYPESCRIPT prettier 10 0 0 1.37s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

Copy link

codecov bot commented Apr 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (3f1ab6f) to head (455db1d).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1104   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          106       108    +2     
  Lines        20801     20816   +15     
  Branches      4091      4091           
=========================================
+ Hits         20801     20816   +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lars-reimann lars-reimann marked this pull request as ready for review April 25, 2024 16:44
@lars-reimann lars-reimann merged commit 3d43d38 into main Apr 25, 2024
7 checks passed
@lars-reimann lars-reimann deleted the 1083-visibilities-for-any-module-member branch April 25, 2024 16:44
lars-reimann pushed a commit that referenced this pull request May 2, 2024
## [0.14.0](v0.13.0...v0.14.0) (2024-05-02)

### Features

* `this` expression ([#1111](#1111)) ([c7bd0fa](c7bd0fa)), closes [#1107](#1107) [#1110](#1110)
* allow literal types as upper bounds of type parameters ([#1102](#1102)) ([c14159b](c14159b)), closes [#1081](#1081)
* Check truthiness of value ([#1131](#1131)) ([0b059a1](0b059a1))
* check usages of `@PythonName` and `@PythonCall` on overriding methods ([#1100](#1100)) ([3021166](3021166))
* partial code generation for multiple targets ([#1114](#1114)) ([5461a1b](5461a1b)), closes [#1079](#1079)
* Stubs for `safe-ds` version 0.22.1 ([#1130](#1130)) ([6f7100d](6f7100d))
* various methods to work with strings ([#1112](#1112)) ([b6d4f16](b6d4f16)), closes [#1108](#1108)
* visibility modifiers for any module member ([#1104](#1104)) ([3d43d38](3d43d38)), closes [#1083](#1083)

### Bug Fixes

* also handle literal types when computing upper bound ([#1103](#1103)) ([3f1ab6f](3f1ab6f)), closes [#1081](#1081)
@lars-reimann
Copy link
Member Author

🎉 This PR is included in version 0.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Included in a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Visibilities for any module member
2 participants