question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jsep.version returns "1.0.2" instead of 1.2.0 or 1.3.0

See original GitHub issue

The package version does not match the distributed files.

On GitHub: package.json declares the version “1.0.2”:

{
	"name": "jsep",
	"version": "1.0.2",

src/json.js mentions that the version will get replaced to the correct value:

export class Jsep {
	/**
	 * @returns {string}
	 */
	static get version() {
		// To be filled in by the template
		return '<%= version %>';
	}

In the distribution package of 1.3.0: package/package.json declares the version “1.3.0”:

{
	"name": "jsep",
	"version": "1.3.0",

Actual: dist/json.js is hardcoded to “1.0.2”:

//     JavaScript Expression Parser (JSEP) 1.0.2

class Jsep {
	/**
	 * @returns {string}
	 */
	static get version() {
		// To be filled in by the template
		return '1.0.2';
	}

Expected: dist/json.js should match the package/package.json version.

File links: https://github.com/EricSmekens/jsep/blob/master/package.json https://github.com/EricSmekens/jsep/blob/master/src/jsep.js https://github.com/EricSmekens/jsep/releases/tag/v1.3.0 (see Assets)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
adicrlcommented, Mar 23, 2022

Wow, I merely pressed the submit button the other day and you already released a new build! 🏆🏆🏆

2reactions
6utt3rflycommented, Mar 22, 2022

@adicrl - thank you for reporting! I’ve published 1.3.4 which now has the correct version in the bundled package.json and embedded into jsep. I had to swap the build steps to commit to git after npm, and I had to incorporate the build into semantic-release to embed the version.

(NOTE: I accidentally made some commits that I thought were going to my fork but weren’t 😬 Sorry about that!)

Read more comments on GitHub >

github_iconTop Results From Across the Web

jsep/CHANGELOG.md at master · EricSmekens/jsep - GitHub
(1, 2) now returns a SequenceExpression instead of throwing an Unclosed ( error · moved the ConditionExpression (ternary) into a plugin, but it ......
Read more >
What's new in 1.3.0 (July 2, 2021) - Pandas
When setting an entire column using loc or iloc , pandas will try to insert the values into the existing data rather than...
Read more >
cftime - PyPI
2/12/2020: version 1.1.0 released. cftime.datetime instances are returned by default from num2date (instead of returning python datetime instances where ...
Read more >
Could not find a version that satisfies the requirement torch ...
Currently, PyTorch on Windows only supports Python 3.7-3.9;. Installing Python 3.9.13 64-bit instead of Python 3.8.3 32-bit solved it for me.
Read more >
Releases — Bokeh 3.0.3 Documentation
3.0.3: Bokeh Version 3.0.3(Dec 2022) is a point release that addresses layout issues affecting downstream projects, as well as other small regressions and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found