codesandbox / codesandbox/codesandbox-client
Do not allow 'latest' when installing npm packages
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🐛 bug report
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project
adheres to. - I have searched the issue tracker for an issue that matches the one I want
to file, without success.
Description of the problem
codesandbox is a great resource for web developers, by providing a place to write working code examples. There is no doubt about that.
By allowing latest as an install option for an npm package allows a developer to quickly write a working example.
But 6 months down that road the example doesn't work any more because latest means something different than what the developer intended. As a result the examples living in codesandbox slowly become stale and non-working.
How has this issue affected you? What are you trying to accomplish?
As I mentioned, codesandbox is a great resource. I visit it very often to learn from the examples. But they don't always work.
To Reproduce
Open the example sandbox and observe that it doesn't work any more because of using the latest npm packages.
Link to sandbox: example
Not my sandbox.
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | latest |
| Browser | chrome |
| Operating System | Windows 10 |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files or tests. Start by locating the npm package installation entry point, then determine how latest is represented and rejected; done means installs using latest are blocked and an appropriate regression test covers the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100