Karishma Chadha
cee1200c85
Merge pull request #54 from kchadha/remove-gzip-js
...
refactor(unzip): remove support for gzip files
2019-03-18 16:53:23 -04:00
Karishma Chadha
da7c3d12c1
refactor(unzip): remove support for gzip files
...
remove gzip dependency and support for gzip files as that was an unused code path
BREAKING CHANGE: Gzipped files are no longer supported as input to the parser.
2019-03-15 12:23:40 -04:00
Michael "Z" Goddard
c5cc58e4c4
Merge pull request #52 from mzgoddard/waterfall-into-promise
...
Replace the async.waterfall in index with a Promise chain
2019-03-06 11:12:49 -05:00
Karishma Chadha
fb5874f599
Merge pull request #53 from kchadha/remove-control-chars
...
fix(parse): remove backspace control characters from input to be parsed
2019-02-27 17:44:50 -05:00
Karishma Chadha
f73ef51038
fix(parse): remove backspace control characters from input to be parsed
2019-02-25 17:02:30 -05:00
Michael "Z" Goddard
b78d01775b
fix(perf): remove async dependency
2019-02-22 16:11:23 -05:00
Michael "Z" Goddard
4c17e4e137
fix(perf): replace async waterfall with promise chain
2019-02-22 16:11:23 -05:00
chrisgarrity
94c7c51558
Merge pull request #51 from chrisgarrity/handle-sb2-nested-zip
...
fix(unzip): handle sb2 files zipped with a folder
2019-02-12 12:17:26 +01:00
Michael "Z" Goddard
4f3d6ebaf1
fix: depend on pify
2019-02-07 14:13:04 -05:00
chrisgarrity
750e866444
fix(unzip): handle sb2 files zipped with a folder
...
Uses a pattern to find the sprite or project json in a zipped folder or flat list of files.
Added tests for
* loading a sprite or project with a nested folder
* loading a file without a json
Fixes #42
2019-02-07 11:24:33 +01:00
Karishma Chadha
18579217e8
Merge pull request #50 from kchadha/allow-sprites-named-stage
...
Allow sprites named stage
2018-12-19 11:43:06 -05:00
Karishma Chadha
898a38da61
build(package): update commitlint packages
2018-12-19 11:29:32 -05:00
Karishma Chadha
bea66d6c2d
fix(sb3_definitions): prevent sprites from being named _stage_
...
add test fixture and unit test for this change
2018-12-19 11:09:06 -05:00
Karishma Chadha
72437ce6c0
test(integration): add test for sb3 file with sprite named 'stage'
...
run sb3 files in the fixtures directory when running integration stress test
2018-12-18 18:25:35 -05:00
Karishma Chadha
f8f8c33c64
fix(sb3_definitions): allow sprites to be named 'stage' or 'Stage'
...
#49
2018-12-18 18:19:59 -05:00
Karishma Chadha
0f3a10d9cf
Merge pull request #46 from kchadha/fix-comment-position-validation
...
fix(sb3_definitions): fix comment position validation
2018-08-13 16:00:45 -04:00
Karishma Chadha
5a9d618a62
fix(sb3_definitions): fix comment position validation
...
A comment's x and y can be null. This will occur if a project is imported from 2.0, a sprite that is
not currently selected has comments, and that project is immediately saved in 3.0 without switching
to the other sprite that has comments.
2018-08-13 14:28:13 -04:00
Karishma Chadha
660d56e9c2
Merge pull request #45 from kchadha/fix-validation-error
...
fix(sb3_definitions): fix validation error
2018-08-13 11:40:22 -04:00
Karishma Chadha
8eb3c30108
fix(sb3_definitions): fix validation error
...
fix a validation error where projects with certain custom procedure blocks were failing to load
2018-08-09 15:17:00 -04:00
kchadha
badddcf1af
Merge pull request #44 from kchadha/layer-order-validation
...
feat: add layerOrder informaiton to stage and sprites
2018-07-25 11:32:57 -04:00
Karishma Chadha
d2fe285a8c
feat: add layerOrder informaiton to stage and sprites
...
Validates the new layerOrder property for the stage and the sprites, adds tests for validation.
2018-07-24 17:00:38 -04:00
Andrew Sliwinski
2552f4d052
Update TRADEMARK
2018-06-18 13:15:31 -04:00
kchadha
ef78ed1b1f
Merge pull request #43 from kchadha/comment-validation
...
Comment validation
2018-06-18 09:40:10 -04:00
Karishma Chadha
328b5a32da
fix(sb3_definitions): add comment text character limit
2018-06-15 17:48:53 -04:00
Karishma Chadha
97f6ef5bed
test(tests): add tests for sb3 projects with comments
2018-06-15 10:55:28 -04:00
Karishma Chadha
1f8a651ac8
feat(sb3_schema): add comment validation for sb3
2018-06-15 10:53:14 -04:00
kchadha
1f05cb476d
Merge pull request #41 from kchadha/fix-sprite2
...
fix(sprite2): sprite2 validation should allow sprites without sounds
2018-05-07 11:13:20 -04:00
Karishma Chadha
af53ae2ef2
fix(sprite2): sprite2 validation should allow sprites without sounds
2018-05-07 10:24:12 -04:00
Karishma Chadha
4250b52575
feat(sprite3_cleanup): minor version change for sprite3 cleanup
2018-05-03 16:43:42 -04:00
kchadha
3156d1d6b3
Merge pull request #40 from kchadha/cleanup-sprite3-spec
...
refactor(sprite3_schema): clean up sprite3 representation
2018-05-03 16:26:27 -04:00
Karishma Chadha
62b96fa49f
refactor(sprite3_schema): clean up sprite3 representation
2018-05-03 16:20:54 -04:00
kchadha
f0959386c1
Merge pull request #39 from kchadha/sprite-validation
...
Add validation for sprite2 and sprite3 files
2018-05-03 11:33:44 -04:00
Karishma Chadha
78ce54e69f
test: add new sprite2 test fixtures and integration tests
...
provide test coverage for sprite2 validation, and update sprite2_schema
2018-05-02 23:46:26 -04:00
Karishma Chadha
b0d1e46cd8
test(tests): fix up tests to accommodate new apis
2018-05-02 23:46:26 -04:00
Karishma Chadha
b808e7447f
feat(schemas): add support for sprite files for 2.0 and 3.0
...
refactor schemas to support sprite2 and sprite3 files, while reusing rules in common with sb2 and
sb3 files
BREAKING CHANGE: Change to main API which now takes an additional boolean argument indicating
whether a sprite or project is being validated
2018-05-02 23:46:26 -04:00
kchadha
5daad968a4
Merge pull request #36 from kchadha/escape-dot
...
fix(schema): escape '.' in regex patterns
2018-04-12 10:07:45 -04:00
Karishma Chadha
705d806e9c
fix(schema): escape '.' in regex patterns
2018-04-11 19:03:56 -04:00
Karishma Chadha
c36b30c14a
chore(semver): bump major version
...
Bump a major version change to reflect recent unreleased changes
BREAKING CHANGE: version bump
2018-04-11 18:42:51 -04:00
kchadha
b8830be63e
Merge pull request #35 from kchadha/semantic-release-config
...
chore(semantic-release): reconfigure semantic-release
2018-04-11 18:29:48 -04:00
Karishma Chadha
5a4939dfb8
chore(config): update travis.yml and package.json
2018-04-11 18:21:22 -04:00
Karishma Chadha
79215ba323
chore(semantic-release): reconfigure semantic-release
...
use semantic-release-cli to set up semantic-release package properly
2018-04-11 18:04:29 -04:00
kchadha
ee75d3cbad
Merge pull request #34 from kchadha/commit-fix
...
fix(commits): issue new commit with correct style for semantic release
2018-04-11 17:26:32 -04:00
Karishma Chadha
b6ee0f7500
fix(commits): issue new commit with correct style for semantic release
...
This change is marked as containing breaking changes because prior commits did not get parsed
correctly with semantic-release. This change should issue a new version of scratch-parser containing
changes to the sb2 and sb3 schemas, added support for gzipped file, and corresponding tests.
BREAKING CHANGE: changes to sb2 validation, sb3 validation (block serialization is more compact),
added support for gzipped json files
2018-04-11 17:21:37 -04:00
Ray Schamp
7745539a13
Merge pull request #33 from rschamp/commit-lint
...
chore(semver): add commit-lint
2018-04-11 16:52:31 -04:00
Ray Schamp
4cb940a65b
chore(semver): add commit-lint
...
Use commit-lint commit hooks so that our commits will work with semver. Also works with Travis so PRs containing invalid commits will fail tests.
2018-04-11 15:19:30 -04:00
kchadha
79d5b8f89e
Merge pull request #32 from kchadha/block-serialization-compression
...
Block serialization compression
2018-04-11 14:48:43 -04:00
Karishma Chadha
61a0694c70
style($schema): Remove extra new line
2018-04-11 09:12:43 -04:00
Karishma Chadha
06352bb11e
refactor($schema): Account for mp3 sounds when considering pattern for 'md5ext' property.
2018-04-10 17:02:50 -04:00
Karishma Chadha
6b002ec49a
refactor($schema): Uhdoing validation workaround for orphan shadow issue in scratch-blocks and scrat
...
Variables and lists are the only primitives that should exist at the top level.
2018-04-10 16:46:37 -04:00
Karishma Chadha
6427bb242b
refactor($schema): Replace underscore with hyphen in video state enum.
2018-04-10 16:41:28 -04:00