Skip to content

Releases: nalgeon/codapi-js

0.20.0

13 Dec 07:41

Choose a tag to compare

Check the server's status before executing code to avoid long waits if the server is down.

⚠️ Requires Codapi server version v0.13.0 or higher.

0.19.10

21 Dec 11:34

Choose a tag to compare

Preserve line breaks when pasting text (this used to work fine, but stopped working at some point, supposedly due to some browser changes).

0.19.8

18 Aug 14:26

Choose a tag to compare

Disable spell checking for editor = basic.

0.19.7

16 May 09:40

Choose a tag to compare

Fixes #29 (line breaks in Docusaurus in read-only mode).

0.19.6

13 May 16:45

Choose a tag to compare

Fixes #26, courtesy of @jonasb.

0.19.5

20 Apr 12:11

Choose a tag to compare

Even more fixes for Docusaurus code editing (see #22).

0.19.4

18 Apr 14:58

Choose a tag to compare

Fixed Docusaurus code editing regression introduced in 0.14.0 (see #22).

0.19.3

18 Apr 00:15

Choose a tag to compare

Fixed depends-on ordering for even more complex dependencies like this:

<pre><code>print("init")</code></pre>
<codapi-snippet id="init" editor="basic">
</codapi-snippet>

<pre><code>print("step a")</code></pre>
<codapi-snippet id="a" editor="basic">
</codapi-snippet>

<pre><code>print("step b")</code></pre>
<codapi-snippet id="b" editor="basic" depends-on="a">
</codapi-snippet>

<pre><code>print("main")</code></pre>
<codapi-snippet id="main" sandbox="python" editor="basic" depends-on="init b">
</codapi-snippet>

Which results in the following output:

init
step a
step b
main

0.19.2

17 Apr 07:05

Choose a tag to compare

Fixed depends-on ordering for non-linear dependencies like this:

<pre><code>package main</code></pre>
<codapi-snippet id="package" editor="basic">
</codapi-snippet>

<pre><code>import "fmt"</code></pre>
<codapi-snippet id="import" editor="basic">
</codapi-snippet>

<pre><code>func main() { fmt.Println("hello") }</code></pre>
<codapi-snippet sandbox="go" editor="basic" depends-on="package import">
</codapi-snippet>

Code after resolving dependencies:

package main
import "fmt"
func main() { fmt.Println("hello") }

0.19.1

22 Mar 07:16

Choose a tag to compare

Support console.info() and console.debug() in the javascript browser sandbox (by @jonasb).