prismicio / javascript-kit

Development kit for the Javascript language
https://developers.prismic.io
106 stars 69 forks source link

Version mismatch when upgrade to 1.0.10 using bower. #50

Closed willawill closed 10 years ago

willawill commented 10 years ago

I got a version mismatch when I tried to upgrade to 1.0.10 with bower.

`t-kit/archive/1.0.10.tar.gz failed with ESOCKETTIMEDOUT, retrying in 1.4s
 bower prismic.io#1.0.10       progress received 0.0MB of 0.1MB downloaded, 26%
 bower prismic.io#1.0.10        extract archive.tar.gz
 bower prismic.io#1.0.10       mismatch Version declared in the json (1.0.9) is different than the resolved one (1.0.10)
 bower prismic.io#1.0.10       resolved git://github.com/prismicio/javascript-kit.git#1.0.10
 bower prismic.io#1.0.10        install prismic.io#1.0.10

We tried to bower install with it's git repo and still saw the error.

rudyrigot commented 10 years ago

Hey Willa, I just changed the tag, can you try again?

If nothing else, the current master is stable and tested, and contains some interesting updates, so I could potentially release 1.0.11 today.

Let me know!

willawill commented 10 years ago

Cool! I get 1.0.10 through bower. Thanks! But asHtml() still renders html code blocks as innerHtml.

Here is the way I render it in my code:

`React.DOM.div(dangerouslySetInnerHTML: {__html: @props.structuredText.asHtml()})

Here is the object I see in inspector console(Chrome):

10: Object
  spans: Array[0]
  text: " a25  <template name="updateButtons">..... and etc. ...a34  </template>"
  type: "preformatted"
  __proto__: Object

Here is the elements in inspector console(Chrome):

 <pre> a1   <template name="identity">
  a2     <div id="identityForm">
  a3       {{&gt; identityForm}}
  a4     </div>
  a5   </template>

Thanks!

rudyrigot commented 10 years ago

Ok, I'm glad you could switch 1.0.10, and I'll help you with the issue you're still having, which probably comes from somewhere else than the bug we've solved in that version then.

But since this issue was about the bower problem, can you open another GitHub issue for this?

I'll help you at the JS kit level, so I'm going to need those from you: