Skip to content

Releases: evex-dev/linejs

2.0.0-rc.6

02 Jan 23:08
bbfcfd1
Compare
Choose a tag to compare
2.0.0-rc.6 Pre-release
Pre-release

Full Changelog: 2.0.0-rc2...2.0.0-rc.6

2.0.0-rc2 - Fix Timeline bug

31 Dec 08:25
Compare
Choose a tag to compare
Pre-release

Full Changelog: 2.0.0-rc1...2.0.0-rc2

2.0.0-rc1

30 Dec 09:28
Compare
Choose a tag to compare
2.0.0-rc1 Pre-release
Pre-release

Full Changelog: 2.0.0-rc...2.0.0-rc1

2.0.0-rc

30 Dec 08:30
Compare
Choose a tag to compare
2.0.0-rc Pre-release
Pre-release

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

26 Dec 21:46
701c42e
Compare
Choose a tag to compare

What's Changed

  • fix(client/uploadObjTalk): allow unicode filename by @vonernue in #52

New Contributors

Full Changelog: 1.9.0...1.9.1

1.9.0 - fix thrift error

10 Dec 05:14
Compare
Choose a tag to compare

1.8.5 - fix JSR error

03 Nov 14:52
Compare
Choose a tag to compare

1.8.4 - fix LINE endpoint

03 Nov 14:42
Compare
Choose a tag to compare

1.8.3 - Re^3-release

03 Nov 12:28
Compare
Choose a tag to compare

1.8.2 - Re^2-release

03 Nov 06:20
Compare
Choose a tag to compare