Skip to content

Releases: snap-blocks/snapblocks

v1.9.0

14 Sep 22:25

Choose a tag to compare

1.9.0

Added

  • Add new Snap! v11 blocks
  • Automatic version injection so I can just edit the version in package.json

Fixed

  • Fix @verticalEllipsis position in @delInput @verticalEllipsis pattern
  • Reporters in upvars not always being in the variables category

v1.8.2

05 Jul 20:56

Choose a tag to compare

Fixed

  • Block prototypes defaulting to Japanese translation
  • Block highlighting (+/- before blocks)
  • Fix viewport height on single scratch 3 define block (pulled from scratchblocks).
  • Default icon color is not affected by zebra coloring
  • Block wrapping in scratch 3 block prototype
  • Stacked comments breaking
  • Multiline comment with // not being bolded

v1.8.1

21 Jan 23:17

Choose a tag to compare

Additions

  • Allow the use of @<:> (each can be used in any order) as a shortcut for @delInput @verticalEllipsis @addInput

Changes

  • Make scratch3 @delInput, @verticalEllipsis and @addInput bigger.

Fixes

  • Fixed Scratch translations (I haven't gotten to adding snap translations yet)
  • Fix snap round input padding
  • Fix unknown santa hats
  • Add "compiled" (@blitz find first item (() @>) in @list)

v1.8.0

14 Dec 00:23

Choose a tag to compare

Additions

  • Santa hats
    Just use santa or santa-{hat name}. The available hat names are: hat, trumpet, star, candles, gift, pretzel, letter, train, and house
  • Add santa option to enable santa hats by default

Fixes

  • Fix upvars
  • Fix snap spacing
  • Fix scratch2 rings
  • Make snap rings look better
  • Allow icons to be in variable names
  • Fix arrow icons in scratch2 and scratch3 styles
  • Make loop icon respect zebra coloring

v1.7.1

07 Dec 17:28

Choose a tag to compare

Changes

  • Remove background of c-shapes in hat blocks because of the snap 10.3.1 update

v1.7.0

07 Dec 03:58

Choose a tag to compare

Additions

  • @infinity icon
  • @cube and @cubeSolid icons
  • Condition hat blocks with :: condition
  • Background for c-slots in hats

Changes

  • Allow when slot [ V] signals [ V] as well as when slot [ V] gets [ V].

Fixes

  • Rename "gets" to "signals" in when [ V] signals [ V] (well, you can still use "gets")
  • Fix snap flag icon
  • Fix scratch3 input roundness
  • Fix snap input width
  • Fix empty rings
  • Fix rings in rings
  • Fix reporter x position in upvars and rings in scatch2
  • C-slots in hat blocks
  • Update snap local pin position
  • Set flat design contrast to new contrast in snap 10.3.0

v1.6.1

10 Nov 02:26
4f88c31

Choose a tag to compare

Additions:

  • Added new snap 10.2 blocks
  • Comment word wrapping

Changes:

  • Snap obsolete color is now grey (other) for parity with snap.

Fixes:

  • Fixed comments in c-slots
  • Backslash before V in inputs will cancel dropdown.
  • Small visual fixes

Full Changelog: v1.6.0...v1.6.1

v1.6.0

20 Aug 03:10

Choose a tag to compare

Added

  • Multiline comments (which allows for accurate comments). You can create them by using /* text /*. For example
    /* multiline
    comment */
    
    block /* multiline
    comment */
    
  • Added local blocks by added :: local to a block.
  • Added string / number input text formatting.
    [`monospace`] ([italic] v)
  • Larger text inputs
    [{hi}]
  • Green flag inside input
    [[__shout__go__]] (it can be escaped to get this as text)
  • Added reset override, which skips all block detections, effectively "resets" the block to it's undefined state.
  • Finally got every single icon from snap into snapblocks (too many to list here).

Changed

  • Multiline extension blocks in scratch 3 style will have each line start after the line after the extension icon (just test it out, and you'll see what I mean)

Fixed

  • Backslash duplicating label part
  • Comments showing spaces
  • Icon sizes
  • More errors and minor stuff

There's probably more stuff that I can't remember right now.

Full Changelog: v1.5.0...v1.6.0

v1.5.0

29 May 23:05

Choose a tag to compare

Additions

  • You can just type pause all instead of pause all @pause.
  • Added <> primitive [] block.
  • Added (compile (() @addInput) for (0) args) block.
  • renderElement() method.
  • Choose which element options are accepted by setting the elementOptions option to a list of options instead of a boolean.
  • Better error handling.
    • If an error occurs in renderMatching(), it will be logged to the console (with the snapblocks code that errored), and will continue to the rest of the elements.

Fixes

  • Fix scratch 3 high contrast pause icon.
  • Fixed an error with non-existent wrapped variable.
  • Make sure style is a string.
  • If a style doesn't exist, just set it to snap, don't throw an error.

Full Changelog: v1.4.2...v1.5.0

v1.4.2

11 May 01:57

Choose a tag to compare

Fixes

  • Fix multiline inputs in the Snap! style.