ui 0.1.1
This release published @cookieyes/ui@0.1.1, @cookieyes/vanilla@0.1.1, @cookieyes/react@0.14.1, @cookieyes/nextjs@0.8.6, @cookieyes/cli@0.4.0 and @cookieyes/test@0.2.1.
Install
Minor changes
init can now run without questions, for scripts, CI and AI coding tools: pass the answers as flags.
npx @cookieyes/cli init --yes --api-url /api/consent --no-installEach of --framework, --mode, --api-url, --regulation, --color-scheme, --locales and --install / --no-install answers one question, and --yes takes the default for the rest. With no terminal to ask in, init now stops with exit code 1 and names the flag it needs, instead of waiting for input that never comes. An unknown flag or value also stops it.
Fixed: npx @cookieyes/cli init --help started the setup questions. It now prints the help text and exits, as npx @cookieyes/cli --help already did.
Fixed: --version always printed 1.0.0. It now prints the version of the installed package.
In @cookieyes/cli.
Patch changes
runBackendConformance reads the server's URL when each check runs, so a server started in beforeAll works.
Fixed: a server on a free port could not be tested. The suite read url when it registered its checks, before a beforeAll hook had started the server and learned its port, so every check sent its request to an empty URL. Setting url on the target object in beforeAll now works.
In @cookieyes/test.
The npm page of each package now opens with the CookieYes banner image, badges and section links, like the other CookieYes packages. No code changed.
In @cookieyes/ui, @cookieyes/vanilla.
Source
Read the full diff and commit history for ui 0.1.1 on GitHub.