Skip to content

Conversation

matux
Copy link
Contributor

@matux matux commented Jul 20, 2025

Description of the change

This PR updates the browserify example from deprecated rollbar-browser to the rollbar package. Also added proper build tooling and cleaned up generated files

Changes

  • package.json:
    • Changed dependency from rollbar-browser to rollbar
    • Added browserify as devDependency
    • Added npm run build script
  • index.js: Updated require statement to use rollbar instead of rollbar-browser
  • README.md: Simplified build instructions to use npm run build
  • Added .gitignore: Excludes generated all.js bundle from version control

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Maintenance
  • New release

Related issues

SDK-518/make-sure-all-sdk-examples-work-properly

@matux matux requested a review from Copilot July 20, 2025 00:19
@matux matux self-assigned this Jul 20, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes the browserify example by replacing the deprecated rollbar-browser package with the current rollbar package and adding proper build tooling. The changes ensure the example works with current package versions and follows better practices for handling generated files.

  • Updates dependency from deprecated rollbar-browser to modern rollbar package
  • Adds proper build script and removes generated bundle from version control
  • Simplifies build instructions in documentation

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
examples/browserify/package.json Updates dependency to rollbar package and adds build script with browserify devDependency
examples/browserify/index.js Changes require statement to use rollbar instead of rollbar-browser
examples/browserify/all.js Removes generated browserify bundle file from version control
examples/browserify/README.md Updates documentation to reflect new package name and simplified build process
examples/browserify/.gitignore Adds gitignore to exclude generated bundle files

@matux matux force-pushed the matux/fix-browserify-example branch from 17978c1 to debf730 Compare July 20, 2025 00:20
@matux matux marked this pull request as ready for review July 20, 2025 00:20
@matux matux merged commit 04b4e72 into master Jul 20, 2025
4 checks passed
@matux matux deleted the matux/fix-browserify-example branch July 20, 2025 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants