This change removes any validation that would throw errors on instantiation. The server enforces these limits, and although doing so at the client can stop unnecessary traffic, it needs to be all-or-nothing, and be done correctly. The limit enforced here for the hostname was incorrect, and we do not enforce other limits such as tags and metadata.
Along the way, a few minor bugs were discovered and fixed:
A non-string tag type provided in an array of tags would throw
t.match assertions do not work on Symbol() properties as part of a larger object
This change removes any validation that would throw errors on instantiation. The server enforces these limits, and although doing so at the client can stop unnecessary traffic, it needs to be all-or-nothing, and be done correctly. The limit enforced here for the
hostname
was incorrect, and we do not enforce other limits such astags
andmetadata
.Along the way, a few minor bugs were discovered and fixed:
t.match
assertions do not work onSymbol()
properties as part of a larger object