Releases: evex-dev/linejs
Releases · evex-dev/linejs
2.0.0-rc.6
Full Changelog: 2.0.0-rc2...2.0.0-rc.6
2.0.0-rc2 - Fix Timeline bug
Full Changelog: 2.0.0-rc1...2.0.0-rc2
2.0.0-rc1
Full Changelog: 2.0.0-rc...2.0.0-rc1
2.0.0-rc
What's Changed
v1
const client = new Client({ storage: ~ });
client.storage.set("time", Date.now())
client.registerCert(
"ffffff...",
);
client.on("pincall", (p) => console.log(p));
client.on("qrcall", (q) => console.log(q));
client.on("update:authtoken", (a) => console.log("AuthToken:", a));
client.on("ready", async (user) => {
console.log(`Logged in as ${user.displayName} (${user.mid})`);
await client.sendMessage({ to: "u...", text: "Hello, World!" });
await client.sendSquareMessage({ squareChatMid: "m...", text: "Hello, World!" });
});
// login with email
await client.login({
device: "DESKTOPWIN",
email: "linejs@evex.dev",
password: "password",
polling: ["talk", "square"],
v3: true,
pincode: "123456",
});
// login with qrcode
await client.login({
device: "DESKTOPWIN",
polling: ["talk", "square"],
v3: true,
qr: true,
});
// login with authToken
await client.login({
device: "DESKTOPWIN",
polling: ["talk", "square"],
authToken: ...,
});
v2
const client = new Client({
device: "DESKTOPWIN",
storage: ~,
});
await client.storage.set("time", Date.now())
client.on("pincall", (p) => console.log(p));
client.on("qrcall", (q) => console.log(q));
client.on("update:authtoken", (a) => console.log("AuthToken:", a));
client.on("ready", (user) => {
console.log(`Logged in as ${user.displayName} (${user.mid})`);
await client.talk.sendMessage({ to: "u...", text: "Hello, World!" });
await client.square.sendMessage({ squareChatMid: "m...", text: "Hello, World!" });
});
// login with email
await client.login({
email: "linejs@evex.dev",
password: "password",
pincode: "123456"
});
// login with qrcode
await client.login({ qr: true });
// login with authToken
await client.login({ authToken: ... });
// start polling
client.polling(["talk", "square"]);
- Change storage operations to asynchronous
- Move device specification from login method to constructor
- V3 token is enabled by default
- Split functions into other classes
- Change some API arguments
- Change message event values
Full Changelog: 1.8.5...2.0.0-rc
1.9.1 - allow unicode filename
1.9.0 - fix thrift error
Full Changelog: 1.8.5...1.9.0
1.8.5 - fix JSR error
Full Changelog: 1.8.4...1.8.5
1.8.4 - fix LINE endpoint
Full Changelog: 1.8.3...1.8.4
1.8.3 - Re^3-release
Full Changelog: 1.7.1...1.8.3
1.8.2 - Re^2-release
Full Changelog: 1.7.1...1.8.2