Skip to content

Releases

@effectified/engine 0.5.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 15:50

@effectified/engine 0.5.0, built from 3aaaf33.

pnpm add -D https://github.com/effectified/engine/releases/download/v0.5.0/effectified-engine-0.5.0.tgz

Facades and the engine are on npm, published by CI with no token and nobody signing in: each repository's release.yml publishes through its workflow's identity (npm's trusted publishing), and every tarball has a provenance attestation that names its commit. npm is the record of what is released.

For facade users

  • Install from npm, by name. npm install @effectified/<name> effect (pnpm add, bun add), a frontend facade with Effect UI's snapshot build, which npm 12 installs from a URL only when told to: npm install --allow-remote=root @effectified/<name> effect https://pkg.pr.new/Effect-TS/ui/@effect/ui@<commit>. Migration: replace an https://effectified.dev/<name>.tgz or GitHub release tarball URL in your package.json with @effectified/<name> and its npm version.
  • A facade's version is its library's major.minor, then its releases for it. DefinitelyTyped's scheme, <upstream major>.<upstream minor>.<n>, n counting the facade's earlier releases for that major.minor: @effectified/nodemailer@10.6.6 is the seventh for nodemailer 10.6 and depends on nodemailer 10.6.1 exactly. npm drops +build metadata, so the <upstream version>+<revision> versions of the GitHub releases are gone, and a facade's version is no longer its library's: upstream's exact version is its dependency and effectified.upstream in its package.json. Migration: pin a facade by its npm version; read the library's version from the facade's dependency.
  • GitHub releases carry no package. <name>-v<version> of effectified/packages keeps the notes and a frontend facade's demo, which effectified.dev unpacks.

For engine users

  • release publishes on npm. It publishes every facade whose version npm lacks and makes its GitHub release, each where it is missing, so a run that stopped half way is finished by the next (releasePlan). It is pack (build, import every entry point in Node, pack, build a frontend facade's demo: this runs upstream's code) then publish (npm publish, then gh release create), which CI runs as jobs of their own so that only the publishing job has the identity npm takes. --dry-run packs and lets npm check each tarball (npm publish --dry-run), packages npm has never seen too. A facade npm has never seen is left out with a warning, a GitHub Actions annotation in CI, and the run passes. A version npm lacks whose tag is a GitHub release already (the releases before 0.5.0 were tagged <name>-v<upstream version>) fails: raise recipe.revision.
  • bootstrap, once, by a person signed in to npm. npm trusts a workflow only for a package it has: for each facade npm has never seen it publishes a placeholder 0.0.0 (a manifest and a README) and sets the trusted publisher (effectified/packages, release.yml); --engine does the same for @effectified/engine (effectified/engine). What is done is skipped; --dry-run signs in nowhere and changes nothing. npm lets a new trusted publisher expire unless it publishes within two days.
  • recipe.revision counts releases within upstream's major.minor. A redraft keeps it at the same version, raises it by one at another version of the same major.minor, and leaves it unset (1) for a new major.minor; it was reset at every new upstream version. It must be a whole number from 1.
  • generate refuses a prerelease of upstream's (VersionError): <major>.<minor>.<n> cannot tell it from a release.
  • A facade's package.json names its repository, git+https://github.com/effectified/packages.git with its directory, which npm checks against the publishing workflow's.
  • docs.json is schema 2. install.latest and install.release, the tarball URLs, are gone; install.npm is the package's npm page; the facade installs by name. install.tag and demo.url name the GitHub release of the new version.
  • The engine is on npm too. release.yml runs scripts/release.ts, which also keeps attaching the tarball to the GitHub release v<version>, since effectified/packages pins the engine by that URL.

@effectified/engine 0.4.0

Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Nov 14:49

@effectified/engine 0.4.0, built from f7ad170.

pnpm add -D https://github.com/effectified/engine/releases/download/v0.4.0/effectified-engine-0.4.0.tgz

Facades generated by 0.4.0 break code written against 0.3.0's facades in the ways below, each on purpose. Every item says what to do instead.

Breaking changes for facade users

  • Borrowed handles have no release methods. A handle a call finds rather than makes is borrowed: puppeteer's browser.pages(), target.page(), frame.page(), the receiver elementHandle.asElement() gives back, a handle a property holds (nodemailer's Mail.transporter). Its facade has no close, dispose or other release method, in its type or at run time, when the types make it certain the method is no step to another handle: it gives nothing the facade wraps (void, a boolean, a promise of those, any value given as it is), or upstream declares it to return this (Node's Server.close(): this), a promise of it too. A release whose result names a handle by its class stays on a borrowed facade, as every release did in 0.3.0, since the types cannot tell zmq's Socket.close(): Socket (@types/zmq), which closes the socket and returns it, from cheerio's end(): Cheerio<AnyNode>, which steps back to another selection: called on a borrowed facade, such a release releases what the owner holds. Migration: shut the resource down through the facade that owns it (the browser launch gave, the page browser.newPage() gave), or let that facade's scope close it.
  • Freshly acquired handles need a Scope. A call that makes a releasable handle acquires it in the caller's scope and releases it when the scope closes: puppeteer's $$, createCDPSession, evaluateHandle, waitForFunction, Locator.waitHandle and similar now require Scope, as launch and newPage already did. Migration: run them inside Effect.scoped(...) or a layer's scope.
  • nodemailer: Mail.dkim and Transport.mailer are omitted. They keep the DKIM private key and the transport's credentials in shapes the facade cannot show as Redacted. Migration: mail.upstream.dkim, transport.upstream.mailer.
  • sharp: the callback twins of async methods become Effect overloads. 0.3.0 typed toBuffer(callback), toFile(file, callback), metadata(callback) and stats(callback) as returning the Sharp facade while running them as Effects; each method now has only its Effect overloads. Migration: yield* image.toBuffer() (and the like) instead of passing a callback.
  • A facade prints as its handle's name. toString(), toJSON() and inspection of every runtime facade give { _id: "<Handle>" }, never upstream's state, whatever upstream's own toString or toJSON do. Migration: puppeteer's raw JSHandle.toString() is handle.upstream.toString(), bullmq's Job.toJSON() is job.upstream.toJSON().
  • Error causes and structured fields are Redacted. An error's cause, and each field its upstream error class declares that is no primitive (no string, number, boolean or string literal), is a Redacted, printed and encoded nowhere (Cause.pretty, logs, JSON). Migration: Redacted.value(error.cause), Redacted.value(error.<field>). _tag and code are unchanged, and Effect.catchTag matches on _tag as before. The reason field is new in 0.4.0: an error with codes carries them as a tagged union, so Effect.catchReason on it is new too. Its case for a code the error does not list, or none, is named by the first of Other, Unlisted, Unlisted2, Unlisted3, ... that is not one of upstream's codes: Other, Unlisted when Other is an upstream code, Unlisted2 when Unlisted is one too.
  • Secrets are scrubbed from error messages. Every failure of a call given a secret the recipe names, and of the handles that call made, has each such secret of 4 characters or longer replaced by <redacted> in its message and in its declared string fields. Codes are never scrubbed. Migration: tell failures apart by _tag, code or reason, not by message text that may hold a secret.
  • A result that may be absent is an Option. An async method or export whose value upstream types as possibly null or undefined in every overload the facade keeps resolves to an Option, of the facade when the value is a handle (one with an overload that never gives absence keeps upstream's type): puppeteer's page.$ of a selector that matches nothing, bullmq's queue.getJob of an unknown id give Option.none() where 0.3.0 gave null or undefined. Migration: use Option's combinators (Option.match, Option.getOrElse, Option.isSome) instead of comparing with null or undefined.
  • Ids are branded. An id the recipe brands (bullmq's JobId: Job.id, the id Queue.getJob, Queue.remove and their kin take) is a branded string, so a plain string where a brand is expected (queue.getJob(id) with id: string) no longer compiles. Migration: JobId.make(id) for a value you know is an id, Schema.decodeUnknownSync(JobId)(input) for external input.
  • puppeteer: ElementHandle.toElement is an Effect. 0.3.0 ran it as a synchronous call; it now resolves to the element's facade, borrowed: the same element as its receiver, so it has no release methods. Migration: yield* handle.toElement("a"), and release the original handle through its owner (the scope that page.$ acquired it in).
  • A release that fails while its scope closes no longer fails the scope. A handle's release run by its scope's finalizer that fails (a browser that crashed before close) is logged as a warning, and the scope closes successfully; 0.3.0 failed the scope's exit with it. Migration: when a release's failure must affect your program, call the release yourself (yield* browser.close()) and handle its failure. The scope still releases the handle as it closes, as 0.3.0's did: that is a second call, and when it fails (the handle is closed already), it is logged as a warning, <Handle>.<release> failed while its scope closed, with the facade's error as its cause, where 0.3.0 failed the scope's exit with it.
  • A member's value is typed as the runtime gives it. 0.3.0 typed some members' values as a facade where the runtime gave upstream's own object, whenever the checker read a handle in a type the generator reads none in: a union of a handle and its subclass written out (parent(): Base | Derived, load(): Promise<Base | Derived>), a generic result such as ts-morph's asKind(kind) and getChildAtIndexIfKind(index, kind) (KindToNodeMappings[TKind] | undefined), a property such as ts-morph's compilerNode. Such a member is now typed as upstream declares it, which is what it always gave at run time. So is a method whose overloads give one handle or a list of it (ts-morph's addExtends(text) and addExtends(texts)): 0.3.0 wrapped whatever it gave as one facade, a list too, which then had none of the list's members; now it gives either as it is. Migration: use the value as upstream's object (its methods as upstream types them, no .upstream, no yield*); code that compiled against 0.3.0's type there failed at run time.
  • A method whose overloads read a value or set it and return the receiver gives the value it reads as it is. cheerio's html(), text(), val(), attr(), css(), data() and prop() read a value, and with a value set it and return the selection. 0.3.0 wrapped every object such a method returned as the selection's facade, so attr()'s record came back as a facade with none of its fields; now a result is the facade only when it is a selection (it has the selection's methods, those upstream declares optional aside, so a handle whose methods are all optional takes any object, as 0.3.0 did), and any other value is given as it is, as each overload's type says. Migration: none for the setters, which still give the facade; read what a getter gives as the value it is.

Re-exports

0.3.0's facades re-exported only Upstream. 0.4.0's also re-export upstream's types, and the values that need no wrapping, by name; a name Node cannot import from upstream's build is not re-exported, so a facade never fails as it loads. Those are puppeteer's Session, Protocol, PageEvent, BrowserEvent, BrowserContextEvent and AutofillAddressField (bundled declarations and const enums with no value in its module), and sharp's format, versions, block, fit, kernel and the other properties of its CommonJS export, which Node's named-export detection cannot see. Use them as in 0.3.0: types as Upstream.<Name>, sharp's values as Upstream.default.<name>.

A value upstream exports under a string name (ES2022's export { x as "review-sentinel" }) is re-exported by that string: import { "review-sentinel" as sentinel } from "@effectified/<name>". A function or class exported so is not wrapped, since a wrapper is declared under its export's name and a string cannot name a declaration: draft offers none, a recipe that offers one gets a reconcile note, and it stays Upstream["review-sentinel"].

Which values Node can import by name is known only from a surface that 0.4.0's study wrote (it has "runtime": "imported"). A facade generated from a surface studied by 0.3.0 re-exports no value, exactly as 0.3.0's facades did, and reconcile prints a note naming the values it leaves out. Migration, for a maintainer: re-run effectify study <name>@<version> to get the value re-exports, then reconcile.

Changed

  • A scope releases each object it acquired once, however many acquisitions of it there are. 0.3.0's scope called a handle's release once per acquisition as it closed, so two calls that handed back one object, or a list holding it twice, released it twice; 0.4.0's scope releases each object once. As in 0.3.0, and as Effect's acquireRelease does, it releases what it acquired whatever you did with it: your own call of a rele...
Read more

@effectified/engine 0.3.0

Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Nov 19:53

@effectified/engine 0.3.0, built from 65b3225.

pnpm add -D https://github.com/effectified/engine/releases/download/v0.3.0/effectified-engine-0.3.0.tgz

@effectified/engine 0.2.0

Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Nov 16:22

@effectified/engine 0.2.0, built from 22e19ea.

pnpm add -D https://github.com/effectified/engine/releases/download/v0.2.0/effectified-engine-0.2.0.tgz

@effectified/engine 0.1.0

Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Nov 15:19

@effectified/engine 0.1.0, built from d429fe7.

pnpm add -D https://github.com/effectified/engine/releases/download/v0.1.0/effectified-engine-0.1.0.tgz

@effectified/xterm 6.0.0

Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Nov 08:55

@effectified/xterm 6.0.0: @xterm/xterm@6.0.0 in Effect, generated by the effectified engine at 89d251a.

npm install --allow-remote=root https://github.com/effectified/engine/releases/download/xterm-v6.0.0/effectified-xterm-6.0.0.tgz effect
pnpm add https://github.com/effectified/engine/releases/download/xterm-v6.0.0/effectified-xterm-6.0.0.tgz effect
bun add https://github.com/effectified/engine/releases/download/xterm-v6.0.0/effectified-xterm-6.0.0.tgz effect

Recipe, surface and tests: https://github.com/effectified/engine/tree/89d251a63caaa181c320a1f68771cdac00ece910/targets/xterm__xterm

@effectified/webawesome 3.15.0

Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Nov 08:55

@effectified/webawesome 3.15.0: @awesome.me/webawesome@3.15.0 in Effect, generated by the effectified engine at 89d251a.

npm install --allow-remote=root https://github.com/effectified/engine/releases/download/webawesome-v3.15.0/effectified-webawesome-3.15.0.tgz effect
pnpm add https://github.com/effectified/engine/releases/download/webawesome-v3.15.0/effectified-webawesome-3.15.0.tgz effect
bun add https://github.com/effectified/engine/releases/download/webawesome-v3.15.0/effectified-webawesome-3.15.0.tgz effect

Recipe, surface and tests: https://github.com/effectified/engine/tree/89d251a63caaa181c320a1f68771cdac00ece910/targets/awesome.me__webawesome

@effectified/simple-git 4.1.0+3

Pre-release

Choose a tag to compare

@effectified/simple-git 4.1.0+3: simple-git@4.1.0 in Effect, generated by the effectified engine at 89d251a.

npm install --allow-remote=root https://github.com/effectified/engine/releases/download/simple-git-v4.1.0+3/effectified-simple-git-4.1.0+3.tgz effect
pnpm add https://github.com/effectified/engine/releases/download/simple-git-v4.1.0+3/effectified-simple-git-4.1.0+3.tgz effect
bun add https://github.com/effectified/engine/releases/download/simple-git-v4.1.0+3/effectified-simple-git-4.1.0+3.tgz effect

Recipe, surface and tests: https://github.com/effectified/engine/tree/89d251a63caaa181c320a1f68771cdac00ece910/targets/simple-git

@effectified/simple-git 4.1.0+2

Pre-release

Choose a tag to compare

@gunta gunta released this 26 Nov 07:44

@effectified/simple-git 4.1.0+2: simple-git@4.1.0 in Effect, generated by the effectified engine at 7512b61.

npm install --allow-remote=root https://github.com/effectified/engine/releases/download/simple-git-v4.1.0+2/effectified-simple-git-4.1.0+2.tgz effect
pnpm add https://github.com/effectified/engine/releases/download/simple-git-v4.1.0+2/effectified-simple-git-4.1.0+2.tgz effect
bun add https://github.com/effectified/engine/releases/download/simple-git-v4.1.0+2/effectified-simple-git-4.1.0+2.tgz effect

Recipe, surface and tests: https://github.com/effectified/engine/tree/7512b6115d3219709df7fd8927a6239b200ce2a2/targets/simple-git

@effectified/simple-git 4.1.0

Pre-release

Choose a tag to compare

@gunta gunta released this 26 Nov 07:27

@effectified/simple-git 4.1.0: simple-git@4.1.0 in Effect, generated by the effectified engine at 1b44521.

npm install --allow-remote=root https://github.com/effectified/engine/releases/download/simple-git-v4.1.0/effectified-simple-git-4.1.0.tgz effect
pnpm add https://github.com/effectified/engine/releases/download/simple-git-v4.1.0/effectified-simple-git-4.1.0.tgz effect
bun add https://github.com/effectified/engine/releases/download/simple-git-v4.1.0/effectified-simple-git-4.1.0.tgz effect

Recipe, surface and tests: https://github.com/effectified/engine/tree/1b4452181e481f5d647d78ffdffd6de03f050e83/targets/simple-git