- Added Node.js 20.x to test matrix
- Breaking change: removed Node.js 14.x support
- Updated dependencies
- Fixed issue where certain JSON / YAML arrays could be unnecessarily nested; fixes #1436, thanks @sbernardello!
- Fixed Arc output from JSON / YAML
- Improved JSON / YAML parsing tests
- Fixed missing quotes in compiler output of string literals to
.arc
+yaml
formats
- Breaking change: removed
toml
support - Stop publishing to the GitHub Package registry
- Updated PragmaNotFound error description
- Updated dependencies
- Fix esoteric issue where a newline with nothing but trailing spaces following a map may blow up
- Updated dependencies
- Trailing newlines are no longer aggregated into
maps
andvectors
in the AST
- Breaking change:
parse.parser
now returns an AST object - Moved JSON schemas to the Arc syntaxes repo
parse.parser
accepts lexeme tokens and returns an AST object (with comments preserved)parse.compiler
accepts an AST and returns one ofarc
,json
, oryaml
(toml
support planned)
- Windows style newline
\r\n
was not being accounted for and could result in buggy reads .arc
map objects will throw if a key is undefined
- Breaking change: removed support for Node.js 10.x (now EOL, and no longer available to created in AWS Lambda) and Node.js 12.x and Node.js 12.x
- Updated dependencies
- Updated vendored dependencies (
js-yaml
,toml
)
- Added i18n support for non-ascii string chars
- Fixed missing tilde from supported string chars
- Added support for new verbose format in
arc.json
+arc.yaml
- Breaking change: remove filesystem methods (
read
,readArc
) deprecated, with that role now taken over by Inventory - Disabled JSON schema validation, to be moved to Inventory
- Add support for
@proxy
pragma for passing through requests via@http
to an external site - Add support for
@http
catchall syntax (e.g.get /api/*
) - Add support for
@http
any
method syntax (e.g.any /path
) - Add support for
@http
head
+options
methods
- Added support for reading and validating Architect function config files (
config.arc
,.arc-config
,arc-config.[json|yaml|yml|toml]
) withreadArcConfig()
- Fixed missing support for the following
@aws
settings:layer
(alternativelylayers
),memory
,policy
(alternativelypolicies
), andtimeout
- Adds support for
@aws apigateway http[v1|v2]|rest
- Adds support for
@static prune true|false
- Adds support for
@static fingerprint external
and@static prefix whatever-folder
- Fixed schema to accept objects as items in the
@static
pragma, thanks @filmaj!
- Fixes issues where values (usually environment variables in
.arc-env
) that start with a leading digit may be miscategorized and return aNaN
- Added user-friendly errors for common schema validation issues
- If schema validation errors are present,
readArc()
errors now returns a string, and not an array of errors - Updated dependencies
- Resolved schema validation errors for
@static staging / production
- Parser now returns a default Architect project if one is not found in the root of the working directory
- Updated dependencies
- Adds rollup for creating node and browser builds (run
npm run build
if you want those)
@aws
pragma no longer required byschema.json
- Resolved issue preventing some pragmas from not serializing correctly; fixes #33
- Removed lockfile
- Adds
schema.json
and JSON schema validation - Adds
arc.toml
support - Adds
read
method - Adds
/examples
and/doc
- Complete lexer / parser rewrite