Skip to content

3.0.9 package broken? Very similar to 3.0.7 version #47

Closed

Description

@fkorling

Seems to be issues with the build of the 3.0.9 package on npm, it is almost the same as the 3.0.7 package.

Running the following on my machine:

curl https://registry.npmjs.org/@mitre/jsonix/-/jsonix-3.0.7.tgz -o jsonix-3.0.7.tgz
curl https://registry.npmjs.org/@mitre/jsonix/-/jsonix-3.0.9.tgz -o jsonix-3.0.9.tgz
mkdir 3.0.7 3.0.9
tar zxf jsonix-3.0.7.tgz -C 3.0.7
tar zxf jsonix-3.0.9.tgz -C 3.0.9

and then diffing the contents:

 > diff -r 3.0.7 3.0.9
diff --color -r 3.0.7/package/package.json 3.0.9/package/package.json
3c3
<       "version": "3.0.7",
---
>       "version": "3.0.9",
53,54c53,54
<               "@xmldom/xmldom": "^0.8.2",
<               "amdefine": "^0.0.4",
---
>               "@xmldom/xmldom": "^0.9.7",
>               "amdefine": "^1.0.1",

but this misses the update to Context.js:

> git diff 3.0.7..3.0.9 scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/Context.js
--- a/scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/Context.js
+++ b/scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/Context.js
@@ -39,7 +39,7 @@ Jsonix.Context = Jsonix
                                {
                                        if (this.namespacePrefixes.hasOwnProperty(ns))
                                        {
-                                               p = this.namespacePrefixes[ns];
+                                               var p = this.namespacePrefixes[ns];
                                                this.prefixNamespaces[p] = ns;
                                        }
                                }

Activity

  1. fkorling commented on May 5, 2025

    @fkorling
    Author

    Is this project still alive?

  2. Amndeep7 commented on Jun 20, 2025

    @Amndeep7

    @fkorling apologies for the delay in response. This repo is still being maintained. We will try to fix this regression in the next release.

  3. Amndeep7 commented on Jun 24, 2025

    @Amndeep7

    @fkorling the contribution that was merged in to fix this bug was apparently made to the wrong location. I have applied that patch to what I believe is the correct location in #49. A release will be coming out shortly. Please tag me directly if you have any further issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions