Repository navigation
Releases
@effectified/engine 0.5.0
@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.tgzFacades 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 anhttps://effectified.dev/<name>.tgzor 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.6is the seventh for nodemailer 10.6 and depends on nodemailer 10.6.1 exactly. npm drops+buildmetadata, 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 andeffectified.upstreamin 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
releasepublishes 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 ispack(build, import every entry point in Node, pack, build a frontend facade's demo: this runs upstream's code) thenpublish(npm publish, thengh release create), which CI runs as jobs of their own so that only the publishing job has the identity npm takes.--dry-runpacks 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: raiserecipe.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 placeholder0.0.0(a manifest and a README) and sets the trusted publisher (effectified/packages,release.yml);--enginedoes the same for@effectified/engine(effectified/engine). What is done is skipped;--dry-runsigns in nowhere and changes nothing. npm lets a new trusted publisher expire unless it publishes within two days.recipe.revisioncounts 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.generaterefuses 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.gitwith its directory, which npm checks against the publishing workflow's. - docs.json is schema 2.
install.latestandinstall.release, the tarball URLs, are gone;install.npmis the package's npm page; the facade installs byname.install.taganddemo.urlname the GitHub release of the new version. - The engine is on npm too.
release.ymlrunsscripts/release.ts, which also keeps attaching the tarball to the GitHub releasev<version>, since effectified/packages pins the engine by that URL.
@effectified/engine 0.4.0
@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.tgzFacades 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 receiverelementHandle.asElement()gives back, a handle a property holds (nodemailer'sMail.transporter). Its facade has noclose,disposeor 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 returnthis(Node'sServer.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'sSocket.close(): Socket(@types/zmq), which closes the socket and returns it, from cheerio'send(): 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 browserlaunchgave, the pagebrowser.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.waitHandleand similar now requireScope, aslaunchandnewPagealready did. Migration: run them insideEffect.scoped(...)or a layer's scope. - nodemailer:
Mail.dkimandTransport.mailerare omitted. They keep the DKIM private key and the transport's credentials in shapes the facade cannot show asRedacted. 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)andstats(callback)as returning theSharpfacade 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 owntoStringortoJSONdo. Migration: puppeteer's rawJSHandle.toString()ishandle.upstream.toString(), bullmq'sJob.toJSON()isjob.upstream.toJSON(). - Error causes and structured fields are
Redacted. An error'scause, and each field its upstream error class declares that is no primitive (no string, number, boolean or string literal), is aRedacted, printed and encoded nowhere (Cause.pretty, logs, JSON). Migration:Redacted.value(error.cause),Redacted.value(error.<field>)._tagandcodeare unchanged, andEffect.catchTagmatches on_tagas before. Thereasonfield is new in 0.4.0: an error with codes carries them as a tagged union, soEffect.catchReasonon it is new too. Its case for a code the error does not list, or none, is named by the first ofOther,Unlisted,Unlisted2,Unlisted3, ... that is not one of upstream's codes:Other,UnlistedwhenOtheris an upstream code,Unlisted2whenUnlistedis 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 itsmessageand in its declared string fields. Codes are never scrubbed. Migration: tell failures apart by_tag,codeorreason, 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 possiblynullorundefinedin every overload the facade keeps resolves to anOption, of the facade when the value is a handle (one with an overload that never gives absence keeps upstream's type): puppeteer'spage.$of a selector that matches nothing, bullmq'squeue.getJobof an unknown id giveOption.none()where 0.3.0 gavenullorundefined. Migration: useOption's combinators (Option.match,Option.getOrElse,Option.isSome) instead of comparing withnullorundefined. - Ids are branded. An id the recipe brands (bullmq's
JobId:Job.id, the idQueue.getJob,Queue.removeand their kin take) is a branded string, so a plain string where a brand is expected (queue.getJob(id)withid: 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.toElementis 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 thatpage.$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'sasKind(kind)andgetChildAtIndexIfKind(index, kind)(KindToNodeMappings[TKind] | undefined), a property such as ts-morph'scompilerNode. 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'saddExtends(text)andaddExtends(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, noyield*); 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()andprop()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, soattr()'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
acquireReleasedoes, it releases what it acquired whatever you did with it: your own call of a rele...
@effectified/engine 0.3.0
@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
@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
@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
@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 effectRecipe, surface and tests: https://github.com/effectified/engine/tree/89d251a63caaa181c320a1f68771cdac00ece910/targets/xterm__xterm
@effectified/webawesome 3.15.0
@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 effectRecipe, surface and tests: https://github.com/effectified/engine/tree/89d251a63caaa181c320a1f68771cdac00ece910/targets/awesome.me__webawesome
@effectified/simple-git 4.1.0+3
@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 effectRecipe, surface and tests: https://github.com/effectified/engine/tree/89d251a63caaa181c320a1f68771cdac00ece910/targets/simple-git
@effectified/simple-git 4.1.0+2
@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 effectRecipe, surface and tests: https://github.com/effectified/engine/tree/7512b6115d3219709df7fd8927a6239b200ce2a2/targets/simple-git
@effectified/simple-git 4.1.0
@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 effectRecipe, surface and tests: https://github.com/effectified/engine/tree/1b4452181e481f5d647d78ffdffd6de03f050e83/targets/simple-git