Loading CHANGES.md +3 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,9 @@ Version 1.0.1 To be released. - Fixed deprecation messages related to the `{handle}` variable in URL templates; they had had wrong placeholders in the message templates. Version 1.0.0 -------------- Loading src/federation/middleware.ts +18 −18 Original line number Diff line number Diff line Loading @@ -701,8 +701,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "actor"]).warn( "The {handle} variable in the actor dispatcher path is deprecated. " + "Use {identifier} instead.", "The {{handle}} variable in the actor dispatcher path is deprecated. " + "Use {{identifier}} instead.", ); } const callbacks: ActorCallbacks<TContextData> = { Loading Loading @@ -1020,8 +1020,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "inbox"]).warn( "The {handle} variable in the inbox dispatcher path is deprecated. " + "Use {identifier} instead.", "The {{handle}} variable in the inbox dispatcher path is deprecated. " + "Use {{identifier}} instead.", ); } this.inboxPath = path; Loading Loading @@ -1097,8 +1097,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "outbox"]).warn( "The {handle} variable in the outbox dispatcher path is deprecated. " + "Use {identifier} instead.", "The {{handle}} variable in the outbox dispatcher path is deprecated. " + "Use {{identifier}} instead.", ); } const callbacks: CollectionCallbacks< Loading Loading @@ -1173,8 +1173,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "collection"]).warn( "The {handle} variable in the following collection dispatcher path " + "is deprecated. Use {identifier} instead.", "The {{handle}} variable in the following collection dispatcher path " + "is deprecated. Use {{identifier}} instead.", ); } const callbacks: CollectionCallbacks< Loading Loading @@ -1245,8 +1245,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "collection"]).warn( "The {handle} variable in the followers collection dispatcher path " + "is deprecated. Use {identifier} instead.", "The {{handle}} variable in the followers collection dispatcher path " + "is deprecated. Use {{identifier}} instead.", ); } const callbacks: CollectionCallbacks< Loading Loading @@ -1313,8 +1313,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "collection"]).warn( "The {handle} variable in the liked collection dispatcher path " + "is deprecated. Use {identifier} instead.", "The {{handle}} variable in the liked collection dispatcher path " + "is deprecated. Use {{identifier}} instead.", ); } const callbacks: CollectionCallbacks< Loading Loading @@ -1389,8 +1389,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "collection"]).warn( "The {handle} variable in the featured collection dispatcher path " + "is deprecated. Use {identifier} instead.", "The {{handle}} variable in the featured collection dispatcher path " + "is deprecated. Use {{identifier}} instead.", ); } const callbacks: CollectionCallbacks< Loading Loading @@ -1465,8 +1465,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "collection"]).warn( "The {handle} variable in the featured tags collection dispatcher " + "path is deprecated. Use {identifier} instead.", "The {{handle}} variable in the featured tags collection dispatcher " + "path is deprecated. Use {{identifier}} instead.", ); } const callbacks: CollectionCallbacks< Loading Loading @@ -1539,8 +1539,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { this.inboxPath = inboxPath; if (variables.has("handle")) { getLogger(["fedify", "federation", "inbox"]).warn( "The {handle} variable in the inbox path is deprecated. " + "Use {identifier} instead.", "The {{handle}} variable in the inbox path is deprecated. " + "Use {{identifier}} instead.", ); } } Loading Loading
CHANGES.md +3 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,9 @@ Version 1.0.1 To be released. - Fixed deprecation messages related to the `{handle}` variable in URL templates; they had had wrong placeholders in the message templates. Version 1.0.0 -------------- Loading
src/federation/middleware.ts +18 −18 Original line number Diff line number Diff line Loading @@ -701,8 +701,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "actor"]).warn( "The {handle} variable in the actor dispatcher path is deprecated. " + "Use {identifier} instead.", "The {{handle}} variable in the actor dispatcher path is deprecated. " + "Use {{identifier}} instead.", ); } const callbacks: ActorCallbacks<TContextData> = { Loading Loading @@ -1020,8 +1020,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "inbox"]).warn( "The {handle} variable in the inbox dispatcher path is deprecated. " + "Use {identifier} instead.", "The {{handle}} variable in the inbox dispatcher path is deprecated. " + "Use {{identifier}} instead.", ); } this.inboxPath = path; Loading Loading @@ -1097,8 +1097,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "outbox"]).warn( "The {handle} variable in the outbox dispatcher path is deprecated. " + "Use {identifier} instead.", "The {{handle}} variable in the outbox dispatcher path is deprecated. " + "Use {{identifier}} instead.", ); } const callbacks: CollectionCallbacks< Loading Loading @@ -1173,8 +1173,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "collection"]).warn( "The {handle} variable in the following collection dispatcher path " + "is deprecated. Use {identifier} instead.", "The {{handle}} variable in the following collection dispatcher path " + "is deprecated. Use {{identifier}} instead.", ); } const callbacks: CollectionCallbacks< Loading Loading @@ -1245,8 +1245,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "collection"]).warn( "The {handle} variable in the followers collection dispatcher path " + "is deprecated. Use {identifier} instead.", "The {{handle}} variable in the followers collection dispatcher path " + "is deprecated. Use {{identifier}} instead.", ); } const callbacks: CollectionCallbacks< Loading Loading @@ -1313,8 +1313,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "collection"]).warn( "The {handle} variable in the liked collection dispatcher path " + "is deprecated. Use {identifier} instead.", "The {{handle}} variable in the liked collection dispatcher path " + "is deprecated. Use {{identifier}} instead.", ); } const callbacks: CollectionCallbacks< Loading Loading @@ -1389,8 +1389,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "collection"]).warn( "The {handle} variable in the featured collection dispatcher path " + "is deprecated. Use {identifier} instead.", "The {{handle}} variable in the featured collection dispatcher path " + "is deprecated. Use {{identifier}} instead.", ); } const callbacks: CollectionCallbacks< Loading Loading @@ -1465,8 +1465,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { } if (variables.has("handle")) { getLogger(["fedify", "federation", "collection"]).warn( "The {handle} variable in the featured tags collection dispatcher " + "path is deprecated. Use {identifier} instead.", "The {{handle}} variable in the featured tags collection dispatcher " + "path is deprecated. Use {{identifier}} instead.", ); } const callbacks: CollectionCallbacks< Loading Loading @@ -1539,8 +1539,8 @@ export class FederationImpl<TContextData> implements Federation<TContextData> { this.inboxPath = inboxPath; if (variables.has("handle")) { getLogger(["fedify", "federation", "inbox"]).warn( "The {handle} variable in the inbox path is deprecated. " + "Use {identifier} instead.", "The {{handle}} variable in the inbox path is deprecated. " + "Use {{identifier}} instead.", ); } } Loading