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

What's new: 2024-08-August #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
326 changes: 326 additions & 0 deletions src/pages/whats-new/2024-08-August.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,326 @@
---
date: August 2024
summary: Changes to brighterscript, bslint, ropm, promises
layout: ../../layouts/WhatsNewPost.astro
---
# Overview
Welcome to the August 2024 edition of "What's New in RokuCommunity." Please consider <a target="_blank" href="https://rokucommunity.substack.com/">subscribing</a> to stay up to date with what's happening in RokuCommunity.

## We need your help
The RokuCommunity projects are maintained by a relatively small group of developers (mostly volunteers), and we have a growing list of unresolved issues. We need your help! There are many different ways you can contribute. Whether it's addressing bugs, improving documentation, introducing new features, or simply helping us manage our expanding list of GitHub issues, your involvement would be greatly appreciated. We are more than happy to guide you in finding the most suitable contribution method that aligns with your interests. To learn more about how you can contribute, feel free to reach out to us on [Slack](https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA), or explore the existing GitHub issues:

- [vscode-brightscript-language](https://github.com/rokucommunity/vscode-brightscript-language/issues)
- [brighterscript](https://github.com/rokucommunity/brighterscript/issues)
- [brighterscript-formatter](https://github.com/rokucommunity/brighterscript-formatter/issues)
- [roku-deploy](https://github.com/rokucommunity/roku-deploy/issues)
- [roku-debug](https://github.com/rokucommunity/roku-debug/issues)
- [bslint](https://github.com/rokucommunity/bslint/issues)
- [ropm](https://github.com/rokucommunity/ropm/issues)
- [brs](https://github.com/rokucommunity/brs/issues)
- [roku-report-analyzer](https://github.com/rokucommunity/roku-report-analyzer/issues)
- [@rokucommunity/promises](https://github.com/rokucommunity/promises/issues)
- [roku-http](https://github.com/rokucommunity/roku-http)

## Issue of the month

In this section, we highlight a specific issue where we could benefit from the community's assistance in finding a solution. These problems are generally straightforward to address, and serve as an excellent opportunity to become acquainted with the various RokuCommunity codebases.

This month, we'd like to highlight [SOME_GH_ISSUE](SOME_URL). SOME_DESCRIPTION


If you're interested in working on this feature, please comment on the [github issue](SOME_LINK) or reach out to us on [Slack](https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA)
# Editor

# Debugging


# BrighterScript

## Link scopes during transpile, fixes namespace transpiling
<!-- 2024-08-03 (for v1.0.0-alpha.36 released on 2024-08-09), https://github.com/RokuCommunity/brighterscript/pull/1271 -->

Fixes a bug where certain namespaced function calls aren't transpiling properly. This was due to scope linking not being performed during the transpile process.

![image](https://github.com/user-attachments/assets/ab2942a7-41ad-4f9a-9391-51a8f1699db1)



## `m` should be typed as roAssociativeArray for all inline functions
<!-- 2024-08-06 (for v1.0.0-alpha.36 released on 2024-08-09), https://github.com/RokuCommunity/brighterscript/pull/1272 -->

Example:

```
class Test
sub method()
stub = function()
m.whatever = false ' m here is unknown - it is an AA
end function
end sub
end class
```






# Community Tools

## bslint
## Check if in TypeExpression before doing VariableExpression checks
<!-- 2024-07-26 (for v1.0.0-alpha.35 released on 2024-08-01), https://github.com/RokuCommunity/bslint/pull/122 -->

Fixes #121

Also fixes #117


## Adds Name Shadowing lint rule
<!-- 2024-07-30 (for v1.0.0-alpha.35 released on 2024-08-01), https://github.com/RokuCommunity/bslint/pull/124 -->

Addresses #99

Checks for name shadowing - that is, when a name in a namespace overrides an existing type/function.

![image](https://github.com/user-attachments/assets/c906b6db-c718-47cb-9040-6bc3a02e8ff4)





## Updated to work with with Brighterscript v1.0.0-alpha.35
<!-- 2024-08-01 (for v1.0.0-alpha.35 released on 2024-08-01), https://github.com/RokuCommunity/bslint/pull/125 -->

Mostly changes around the new structure of `BsDiagnsotic` ...



## Removing peer-dependency because it keeps causing issues
<!-- 2024-08-01 (for v1.0.0-alpha.36 released on 2024-08-09), https://github.com/RokuCommunity/bslint/pull/126 -->

Removing the peerDependency section in the package.json because I keep forgetting to update it when I cut releases, which causes issues. We've already established that you need to keep the alpha version of bslint in sync with brighterscript, that should be enough.


## add rule for roRegex duplicates
<!-- 2024-08-06 (for v0.8.23 released on 2024-08-22), https://github.com/RokuCommunity/bslint/pull/119 -->

![image](https://github.com/user-attachments/assets/d321d623-41a1-4e63-b57a-3188250e482d)



## Uprgade to [email protected]
<!-- 2024-08-07 (for v0.8.23 released on 2024-08-22), https://github.com/RokuCommunity/bslint/pull/108 -->

Upgrade to [email protected]


## [email protected]
<!-- 2024-08-09 (for v1.0.0-alpha.36 released on 2024-08-09), ([1dea9d0](https://github.com/RokuCommunity/bslint/commit/1dea9d0)) -->




## Fix LINT3024 and LINT3025 case sensitivity bug
<!-- 2024-08-23 (for v0.8.24 released on 2024-08-23), https://github.com/RokuCommunity/bslint/pull/129 -->

Fix bug where LINT3024 and LINT3025 were doing a case-sensitive check when they should be checking case-insensitive.


## ropm
## Maintenance (lint fixes, bsc upgrades, npm audit fixes)
<!-- 2024-08-01 (for v0.10.25 released on 2024-08-01), https://github.com/RokuCommunity/ropm/pull/75 -->

- Upgrade eslint
- add several lint new rules and exclusions
- fix some lint issues.
- fix some npm audit issues
- upgrade to latest bsc



# Community Libraries

## promises
## Commit for Promises BRS demo
<!-- 2023-12-06 (for v0.3.0 released on 2024-08-23), ([3143aa2](https://github.com/RokuCommunity/promises/commit/3143aa2)) -->




## Commit for Promises BRS demo
<!-- 2023-12-06 (for v0.3.0 released on 2024-08-23), ([c776a03](https://github.com/RokuCommunity/promises/commit/c776a03)) -->




## Commit for Promises BRS demo
<!-- 2023-12-06 (for v0.3.0 released on 2024-08-23), ([fb1af54](https://github.com/RokuCommunity/promises/commit/fb1af54)) -->




## Commit for Promises BRS demo - PR comment updates
<!-- 2023-12-13 (for v0.3.0 released on 2024-08-23), ([46be401](https://github.com/RokuCommunity/promises/commit/46be401)) -->




## Commit for Promises BRS demo - PR comment updates
<!-- 2023-12-13 (for v0.3.0 released on 2024-08-23), ([903144e](https://github.com/RokuCommunity/promises/commit/903144e)) -->




## adding unit tests
<!-- 2023-12-14 (for v0.3.0 released on 2024-08-23), ([609fa83](https://github.com/RokuCommunity/promises/commit/609fa83)) -->




## added command line scripts including a script from rokukor that runs roku-deploy and captures output from tests
<!-- 2023-12-14 (for v0.3.0 released on 2024-08-23), ([7827f7d](https://github.com/RokuCommunity/promises/commit/7827f7d)) -->




## Commit for Promises BRS demo - PR comment updates
<!-- 2023-12-16 (for v0.3.0 released on 2024-08-23), ([609cf13](https://github.com/RokuCommunity/promises/commit/609cf13)) -->




## Commit for Promises BRS demo - PR comment updates
<!-- 2023-12-16 (for v0.3.0 released on 2024-08-23), ([dc28448](https://github.com/RokuCommunity/promises/commit/dc28448)) -->




## Some naming tweaks
<!-- 2023-12-22 (for v0.3.0 released on 2024-08-23), ([c4d8287](https://github.com/RokuCommunity/promises/commit/c4d8287)) -->




## Merge pull request #12 from disc7/promises-demo-brightscript
<!-- 2023-12-22 (for v0.3.0 released on 2024-08-23), ([a1dfae8](https://github.com/RokuCommunity/promises/commit/a1dfae8)) -->




## lock to MasterworksIO/[email protected]
<!-- 2023-12-22 (for v0.3.0 released on 2024-08-23), ([26a8996](https://github.com/RokuCommunity/promises/commit/26a8996)) -->




## back to @2 for now as 2.1 seems to be missing
<!-- 2023-12-22 (for v0.3.0 released on 2024-08-23), ([bdc50c2](https://github.com/RokuCommunity/promises/commit/bdc50c2)) -->




## Merge pull request #15 from rokucommunity/feature/add-unit-tests
<!-- 2023-12-22 (for v0.3.0 released on 2024-08-23), ([986f7a9](https://github.com/RokuCommunity/promises/commit/986f7a9)) -->




## Rename `.demos/` to `demos/`
<!-- 2024-02-06 (for v0.3.0 released on 2024-08-23), https://github.com/RokuCommunity/promises/pull/16 -->

The demos folder had the wrong name. It should have been `demos`, not `.demos`


## Update README.md
<!-- 2024-02-08 (for v0.3.0 released on 2024-08-23), https://github.com/RokuCommunity/promises/pull/17 -->




## Ci create package
<!-- 2024-08-22 (for v0.3.0 released on 2024-08-23), https://github.com/RokuCommunity/promises/pull/22 -->

Support `create-package` tag


## Bugfix/resolve and reject can cause node creation
<!-- 2024-08-23 (for v0.3.0 released on 2024-08-23), https://github.com/RokuCommunity/promises/pull/21 -->





# Formatting


# Preview features
<!-- any alpha/beta changes across all projects should be documented here and not in their primary area above-->

# Documentation

# Misc

# For Contributors

***

# TODO
***Move these items to an appropriate section above, then delete this section***

***

# Thank you

Last but certainly not least, a big **_Thank You_** to the following people who contributed this month:

Contributions to [brighterscript](https://github.com/RokuCommunity/brighterscript):

- [@markwpearce (Mark Pearce)](https://github.com/markwpearce)
- `m` should be typed as roAssociativeArray for all inline functions ([PR #1272](https://github.com/RokuCommunity/brighterscript/pull/1272))
- [@TwitchBronBron (Bronley Plumb)](https://github.com/TwitchBronBron)
- Link scopes during transpile, fixes namespace transpiling ([PR #1271](https://github.com/RokuCommunity/brighterscript/pull/1271))

Contributions to [bslint](https://github.com/RokuCommunity/bslint):

- [@markwpearce (Mark Pearce)](https://github.com/markwpearce)
- Check if in TypeExpression before doing VariableExpression checks ([PR #122](https://github.com/RokuCommunity/bslint/pull/122))
- Adds Name Shadowing lint rule ([PR #124](https://github.com/RokuCommunity/bslint/pull/124))
- Updated to work with with Brighterscript v1.0.0-alpha.35 ([PR #125](https://github.com/RokuCommunity/bslint/pull/125))
- [@RokuAndrii (RokuAndrii)](https://github.com/RokuAndrii)
- add rule for roRegex duplicates ([PR #119](https://github.com/RokuCommunity/bslint/pull/119))
- Fix LINT3024 and LINT3025 case sensitivity bug ([PR #129](https://github.com/RokuCommunity/bslint/pull/129))
- [@TwitchBronBron (Bronley Plumb)](https://github.com/TwitchBronBron)
- Removing peer-dependency because it keeps causing issues ([PR #126](https://github.com/RokuCommunity/bslint/pull/126))
- Uprgade to [email protected] ([PR #108](https://github.com/RokuCommunity/bslint/pull/108))
- [email protected] ([1dea9d0](https://github.com/RokuCommunity/bslint/commit/1dea9d0))

Contributions to [ropm](https://github.com/RokuCommunity/ropm):

- [@TwitchBronBron (Bronley Plumb)](https://github.com/TwitchBronBron)
- Maintenance (lint fixes, bsc upgrades, npm audit fixes) ([PR #75](https://github.com/RokuCommunity/ropm/pull/75))

Contributions to [promises](https://github.com/RokuCommunity/promises):

- [@charlie-abbott-deltatre (Charlie Abbott)](https://github.com/charlie-abbott-deltatre)
- Commit for Promises BRS demo ([3143aa2](https://github.com/RokuCommunity/promises/commit/3143aa2))
- Commit for Promises BRS demo ([c776a03](https://github.com/RokuCommunity/promises/commit/c776a03))
- Commit for Promises BRS demo ([fb1af54](https://github.com/RokuCommunity/promises/commit/fb1af54))
- Commit for Promises BRS demo - PR comment updates ([46be401](https://github.com/RokuCommunity/promises/commit/46be401))
- Commit for Promises BRS demo - PR comment updates ([903144e](https://github.com/RokuCommunity/promises/commit/903144e))
- Commit for Promises BRS demo - PR comment updates ([609cf13](https://github.com/RokuCommunity/promises/commit/609cf13))
- Commit for Promises BRS demo - PR comment updates ([dc28448](https://github.com/RokuCommunity/promises/commit/dc28448))
- [@chrisdp (Christopher Dwyer-Perkins)](https://github.com/chrisdp)
- Update README.md ([PR #17](https://github.com/RokuCommunity/promises/pull/17))
- Bugfix/resolve and reject can cause node creation ([PR #21](https://github.com/RokuCommunity/promises/pull/21))
- [@jtuckerfubo (justin tucker)](https://github.com/jtuckerfubo)
- adding unit tests ([609fa83](https://github.com/RokuCommunity/promises/commit/609fa83))
- added command line scripts including a script from rokukor that runs roku-deploy and captures output from tests ([7827f7d](https://github.com/RokuCommunity/promises/commit/7827f7d))
- [@TwitchBronBron (Bronley Plumb)](https://github.com/TwitchBronBron)
- Some naming tweaks ([c4d8287](https://github.com/RokuCommunity/promises/commit/c4d8287))
- Merge pull request #12 from disc7/promises-demo-brightscript ([a1dfae8](https://github.com/RokuCommunity/promises/commit/a1dfae8))
- lock to MasterworksIO/[email protected] ([26a8996](https://github.com/RokuCommunity/promises/commit/26a8996))
- back to @2 for now as 2.1 seems to be missing ([bdc50c2](https://github.com/RokuCommunity/promises/commit/bdc50c2))
- Merge pull request #15 from rokucommunity/feature/add-unit-tests ([986f7a9](https://github.com/RokuCommunity/promises/commit/986f7a9))
- Rename `.demos/` to `demos/` ([PR #16](https://github.com/RokuCommunity/promises/pull/16))
- Ci create package ([PR #22](https://github.com/RokuCommunity/promises/pull/22))