Closed mrc4tt closed 4 years ago
@clugg Do you have some idea?
Use release version 1.1.0
in the meantime as the author recently removed the function you're asking about.
Hi @MikkelDK,
GetIndexString
was removed in v1.1.1 as per the release notes. I didn't make this release a major bump because I didn't expect anyone to be using the internal helper, and also because I had other major breaking changes in the pipeline that I didn't want to release simultaneously. That was a mistake on my part, so apologies for that. As of v2.0.0 an equivalent method is available on the JSON_Array
methodmap: GetIndexAsString
, but not available for JSON_Object
s.
I will do my best to ensure I don't release breaking changes outside of major version bumps in the future, but I also recommend that you compile against a pinned version that you know works with your code.
@clugg pretty sure it’s used in Splewis’ Pugsetup.
@clugg pretty sure it’s used in Splewis’ Pugsetup.
Correct as @b3none say. it's used in Splewis's Pugsetup! ;)
That is rather unfortunate! I will look into submitting a PR which moves the project to v2.0.0
if I have any spare time over the next few days.
Have you thought about adding the old functionality back in and then releasing 1.2.1? You can branch off the old version 1 release and go from there 🙂 In future any removal of functions which could be accessed by other people would be considered a breaking change.
While I don't like the idea of encouraging continued use of v1 since I have no intentions of supporting it long term, I can appreciate the fact that v1 has unnecessary breaking changes. Thanks for your suggestion - I have released v1.2.0 with the breaking change reverted.
Hello,
I'm using sm-json to doing compile, and using json for plugins.
I got this error, and I'm stuck over, what I need to changes:
What should I replace "JSON_Object.GetIndexString" with?
Example code: