- #1064 (patch)
Data type fixes.@type=enumnow matches numeric and boolean members against string values fromprocess.envandoverrideValues, soLEVEL=2orFLAG=truefrom CI satisfiesenum(1, 2, 3)/enum(true, false).@type=urlmatchesallowedDomainsin full against the URL host instead of as a substring, which previously letexample.compass an allowlist ofmyexample.com; write two or more hosts as an array (allowedDomains=[a.com, b.com]), since a comma inside a single string now errors and names the array to use. AnallowedDomainsentry without a port now allows any port, soallowedDomains=[localhost]acceptshttp://localhost:3000; add a port to pin it. Each entry must be a hostname with an optional port; an empty list, or a scheme, path, or credentials in an entry, now errors instead of silently matching the wrong host or nothing at all. VS Code diagnostics forallowedDomains,allowedProtocolsandnoTrailingSlashwere reporting different results than an actual load, and now match.@env-spec/parserexportsautoCoerceso tooling can classify unquoted values exactly as the parser does.@type=url(noTrailingSlash=true)now also catches a trailing slash that is followed by a query string or hash, such ashttps://example.com/path/?q=1.@type=ip(version=6)accepts IPv4-mapped addresses like::ffff:192.168.1.1.@type=md5accepts uppercase hex and normalizes it to lowercase.@type=portrejects non-integers such as80.5.
Published to
- ✅ custom